private void renderPrompt(final HttpServletResponse response, final String user, final String password, final String error) throws IOException {
response.setContentType("text/html");
final HtmlComponentFactory factory = getHtmlComponentFactory();
final boolean registerLink = getAuthenticationManager().supportsRegistration(RegistrationDetailsPassword.class);
final LogonFormPage page = factory.createLogonPage(user, password, registerLink, error);
page.write(response.getWriter());
}