@Override
public NewUserActionResult execute(NewUserAction newUserAction,
ExecutionContext context) throws ActionException {
NewUserActionResult resultObject;
// Update sessionInformation object for client
ServerSIO session = new ServerSIO(newUserAction.getSession());
session.save();
// Register new user on server
try {
UserInformation UIO = new UserInformation(servletContext);
UIO.registerNewUser(newUserAction);
} catch (NewUserError e) {
// something went wrong
throw new ActionException(e.getMessage());
}
// everything ok
return new NewUserActionResult();
}