@Override
 public void setAutoLoginConfig(FriendAccountConfiguration config) {
   // Remove the old configuration, if there is one
   if (autoLoginConfig != null) {
     passwordManager.removePassword(autoLoginConfig.getUserInputLocalID());
     SwingUiSettings.XMPP_AUTO_LOGIN.set("");
     SwingUiSettings.USER_DEFINED_JABBER_SERVICENAME.set("");
     autoLoginConfig = null;
   }
   // Store the new configuration, if there is one
   if (config != null) {
     try {
       if (config.storePassword()) {
         passwordManager.storePassword(config.getUserInputLocalID(), config.getPassword());
       }
       SwingUiSettings.XMPP_AUTO_LOGIN.set(config.getLabel() + "," + config.getUserInputLocalID());
       if (config.getLabel().equals("Jabber"))
         SwingUiSettings.USER_DEFINED_JABBER_SERVICENAME.set(config.getServiceName());
       autoLoginConfig = config;
     } catch (IllegalArgumentException ignored) {
       // Empty username or password - no soup for you!
     } catch (IOException ignored) {
       // Error encrypting password - no more Soup Nazi jokes for you!
     }
   }
 }
 private void loadCustomServer() {
   String custom = SwingUiSettings.USER_DEFINED_JABBER_SERVICENAME.get();
   FriendAccountConfigurationImpl customConfig =
       new FriendAccountConfigurationImpl(
           custom, "Jabber", resource, Network.Type.XMPP, otherIconSmall, otherIconLarge);
   configs.put(customConfig.getLabel(), customConfig);
 }