@Override
public String render()
{
// use freemarker macros to render form header and footer
FreemarkerView view = new FreemarkerView(MolgenisForm.class.getPackage().getName().replace(".", "/")
+ "/MolgenisForm.ftl", getModel());
view.addParameter("content", layout.render());
String result = view.render();
return result;
}