if (!formPassword.equals(toadletContext.getContainer().getFormPassword())) {
return new RedirectResponse(invalidFormPasswordRedirectTarget);
}
}
PageMaker pageMaker = toadletContext.getPageMaker();
PageNode pageNode = pageMaker.getPageNode(getPageTitle(request), toadletContext);
for (String styleSheet : getStyleSheets()) {
pageNode.addCustomStyleSheet(styleSheet);
}
for (Map<String, String> linkNodeParameters : getAdditionalLinkNodes(request)) {
HTMLNode linkNode = pageNode.headNode.addChild("link");
for (Entry<String, String> parameter : linkNodeParameters.entrySet()) {
linkNode.addAttribute(parameter.getKey(), parameter.getValue());
}
}
String shortcutIcon = getShortcutIcon();
if (shortcutIcon != null) {
pageNode.addForwardLink("icon", shortcutIcon);
}
TemplateContext templateContext = templateContextFactory.createTemplateContext();
templateContext.mergeContext(template.getInitialContext());
try {