public void doFinishRegistration() {
String sessionKey = getSessionKey();
FireLogger.logInfo("Completing registration for seesion key: {0}", sessionKey);
CredentialsTuple credentials = interSessionContext.getRegistrationSessionData(sessionKey);
if (credentials == null) {
FireFaces.addErrorMessage("Error during registration process", "session key does not exist, please try registering again" );
return;
// return "An error has occured, please try registering again";
}
/*
* Persist the user
*/
FireUser newUser = credentials.getUser();
String password = credentials.getPassword();
userManager.create(newUser);
newUser = userManager.findUser(newUser.getEmail());
/*