" are both named [" + pageName + "]");
}
Statement pageImplStmt = generateNewInstanceOfPageImpl(pageClass, pageName);
if (annotatedPageRoles.contains(DefaultPage.class)) {
// need to assign the page impl to a variable and add it to the map twice
URLPattern pattern = URLPatternMatcher.generatePattern(annotation.path());
if(pattern.getParamList().size() > 0) {
throw new GenerationException("Default Page must not contain any path parameters.");
}
ctor.append(Stmt.declareFinalVariable("defaultPage", PageNode.class, pageImplStmt));
pageImplStmt = Variable.get("defaultPage");