try {
boolean isModelView = elem.getAttribute("with-model") != null;
sw.println("protected static class " + subviewClassName
+ " implements "+(isModelView?"ModelView":"View")+" {");
sw.indent();
GeneratedClassInfo genClass = new GeneratedInnerClassInfo(subviewClassName, rootViewClass, commonTypes.object, true);
if(isModelView)
genClass.addImplementedInterface(getType(ModelView.class.getName()));
new ClassGenerator().generateClassBody(elem, genClass, sv.parentViewClass, rootViewClass);
sw.outdent();
sw.println("}");
} finally {
popLogger();