/**
   * Convenient function to create User.
   *
   * @param username
   * @param password
   * @param homeFolder
   * @return User
   */
  public static com.actuate.schemas.User newUser(
      String username, String password, String homeFolder) {

    com.actuate.schemas.User user = new com.actuate.schemas.User();
    user.setName(username);
    user.setPassword(password);
    user.setHomeFolder(homeFolder);

    return user;
  }
  /**
   * Send a single administrate message to create a user
   *
   * @param user
   * @return AdministrateResponse
   * @throws RemoteException
   */
  public com.actuate.schemas.AdministrateResponse createUser(com.actuate.schemas.User user)
      throws RemoteException {
    System.out.println("Creating user " + user.getName());

    com.actuate.schemas.CreateUser createUser = new com.actuate.schemas.CreateUser();
    createUser.setUser(user);
    createUser.setIgnoreDup(Boolean.TRUE);

    com.actuate.schemas.AdminOperation adminOperation = new com.actuate.schemas.AdminOperation();
    adminOperation.setCreateUser(createUser);

    return runAdminOperation(adminOperation);
  }