final RegisterFormPage page = factory.createRegisterPage(user, password, message);
page.write(response.getWriter());
}
private boolean register(final String user, final String password, final String password2) {
return getAuthenticationManager().register(new RegistrationDetailsPassword(user, password));
}