/** Receive account value. */
 public synchronized void accountValue(String account, String tag, String value, String currency) {
   if (account.equals(m_selAcct)) {
     try {
       MarketValueTag mvTag = MarketValueTag.valueOf(tag);
       m_mktValModel.handle(account, currency, mvTag, value);
     } catch (Exception e) {
       m_marginModel.handle(tag, value, currency, account);
     }
   }
 }
 protected synchronized void onChanged() {
   int i = m_accounts.getSelectedIndex();
   if (i != -1) {
     String selAcct = (String) m_acctList.get(i);
     if (!selAcct.equals(m_selAcct)) {
       m_selAcct = selAcct;
       m_marginModel.clear();
       m_mktValModel.clear();
       m_portfolioModel.clear();
       ApiDemo.INSTANCE.controller().reqAccountUpdates(true, m_selAcct, this);
     }
   }
 }