code: protected void populateUser (
          User user, Username name, Password pass, String realname, String email, int siteId)
      {
          user.username = name.getUsername();
          user.setPassword(pass);
          user.setRealName(realname);
          user.setEmail(email);
          user.created = new Date(System.currentTimeMillis());
          user.setSiteId(siteId);
      }
docs: Configures the supplied user record with the provided information in preparation for
  inserting the record into the database for the first time.