protected void load(File file) throws Exception {
    currentUserFile = file;
    URL fileUrl = file.toURL();

    load(fileUrl);
    if (userName == null) {
      OTUserObject userObject = getUserObject();
      if (userObject.getName() == null) {
        userObject.setName(currentUserFile.getName());
      }
    }
  }
  protected void load(XMLDatabase db) throws Exception {
    initUserDb(db);

    // Set the username
    OTUser user = refMap.getUser();
    OTUserObject aUser = (OTUserObject) user;
    if (userName != null) {
      aUser.setName(userName);
    }

    otrunk.registerReferenceMap(getReferenceMap());

    // just loading the database shouldn't cause it to have changes that need
    // saving.  If the user name was set that would be change.
    userDataDB.setDirty(false);
  }