myAutoLogin = true; String autoLoginStr = (String) _parameters.objectForKey(InstantMessengerAdaptor.AUTO_LOGIN_KEY); if (autoLoginStr == null) { autoLoginStr = System.getProperty(InstantMessengerAdaptor.AUTO_LOGIN_KEY); } if (autoLoginStr != null && !Boolean.valueOf(autoLoginStr).booleanValue()) { myAutoLogin = false; }
  public InstantMessengerAdaptor(String _name, NSDictionary _parameters) throws InstantiationException, IllegalAccessException, ClassNotFoundException {    super(_name, _parameters);    myConversations = new HashMap();    myApplication = WOApplication.application();    myScreenName = getScreenName(InstantMessengerAdaptor.SCREEN_NAME_KEY, _parameters);    myPassword = getScreenName(InstantMessengerAdaptor.PASSWORD_KEY, _parameters);    myFactory = getFactory(InstantMessengerAdaptor.IM_FACTORY_KEY, _parameters);    myConversationTimeout = 1000 * 60 * 5;    String conversationTimeoutStr = (String) _parameters.objectForKey(InstantMessengerAdaptor.CONVERSATION_TIMEOUT_KEY);    if (conversationTimeoutStr == null) {      conversationTimeoutStr = System.getProperty(InstantMessengerAdaptor.CONVERSATION_TIMEOUT_KEY);    }    if (conversationTimeoutStr != null) {      myConversationTimeout = Long.valueOf(conversationTimeoutStr).longValue();    }    myConversationActionName = (String) _parameters.objectForKey(InstantMessengerAdaptor.CONVERSATION_ACTION_NAME_KEY);    if (myConversationActionName == null) {      myConversationActionName = System.getProperty(InstantMessengerAdaptor.CONVERSATION_ACTION_NAME_KEY);      if (myConversationActionName == null) {        myConversationActionName = "imConversation";      }    }    String watcherEnabledStr = (String) _parameters.objectForKey(InstantMessengerAdaptor.WATCHER_ENABLED_KEY);    if (watcherEnabledStr == null) {      watcherEnabledStr = System.getProperty(InstantMessengerAdaptor.WATCHER_ENABLED_KEY);    }    if (watcherEnabledStr != null && Boolean.valueOf(watcherEnabledStr).booleanValue()) {      myWatcherScreenName = getScreenName(InstantMessengerAdaptor.WATCHER_SCREEN_NAME_KEY, _parameters);      myWatcherPassword = getScreenName(InstantMessengerAdaptor.WATCHER_PASSWORD_KEY, _parameters);      myWatcherFactory = getFactory(InstantMessengerAdaptor.WATCHER_IM_FACTORY_KEY, _parameters);    }  }