code: public void saveProperties() {
          try {
              Properties props = new Properties();
              props.setProperty("lastServer", m_lastServer);
              props.setProperty("lastProtocol", m_lastProtocol);
              props.setProperty("lastUsername", m_lastUsername);
              props.setProperty("lastContext", m_lastContext);
  
              Iterator<String> iter;
              int i;
              iter = m_servers.keySet().iterator();
              i = 0;
              while (iter.hasNext()) {
                  String name = iter.next();
                  props.setProperty("server" + i, name);
                  i++;
              }
              iter = m_protocols.keySet().iterator();
              i = 0;
              while (iter.hasNext()) {
                  String name = iter.next();
                  props.setProperty("protocol" + i, name);
                  i++;
              }
              iter = m_usernames.keySet().iterator();
              i = 0;
              while (iter.hasNext()) {
                  String name = iter.next();
                  props.setProperty("username" + i, name);
                  i++;
              }
              iter = m_contexts.keySet().iterator();
              i = 0;
              while (iter.hasNext()) {
                  String name = iter.next();
                  props.setProperty("context" + i, name);
                  i++;
              }
  
              props
                      .store(new FileOutputStream(new File(Administrator.BASE_DIR,
                                                           "fedora-admin.properties")),
                             "Fedora Administrator saved settings");
          } catch (Exception e) {
              System.err.println("Warning: Error writing properties: "
                      + e.getClass().getName() + ": " + e.getMessage());
          }
      }
docs: and usernames