final LogonFormPage page = factory.createLogonPage(user, password, registerLink, error);
page.write(response.getWriter());
}
protected AuthenticationSession authenticate(final String user, final String password) {
AuthenticationRequest request;
if (getDeploymentType() == DeploymentType.EXPLORATION) {
request = new AuthenticationRequestExploration();
} else {
request = new AuthenticationRequestPassword(user, password);
}