final StateControllerBase scb = (StateControllerBase) sc; new Thread() { public void run() { try { scb.setBindingSite(getBindingSite()); scb.initialize(getBindingSite(), model); scb.load(); scb.start(); } catch (Exception ex) { logger.error(ex.getMessage(), ex); } } }.start();
StateControllerBase scb = (StateControllerBase) sc; scb.setBindingSite(getBindingSite()); scb.initialize(getBindingSite(), model); scb.load(); scb.start();
  public void addController(int state, final String stateName, StateController sc) {    logger.debug("Adding state controller: state=" + stateName);    if (sc instanceof StateControllerBase) {      final StateControllerBase scb = (StateControllerBase) sc;      new Thread() {        public void run() {          try {            scb.setBindingSite(getBindingSite());            scb.initialize(getBindingSite(), model);            scb.load();            scb.start();          }          catch (Exception ex) {            logger.error(ex.getMessage(), ex);          }        }      }.start();    }    controllers.put(new Integer(state), new ControllerEntry(state, stateName, sc));  }