final String content = (String) TemplateRuntime.execute( footerTemplate );
writer.append( content );
}
private void loadUserInfo( PrintWriter writer ) {
final Subject subject = SecurityFactory.getIdentity();
final Map<String, String> map = new HashMap<String, String>() {{
put( "name", subject.getName() );
put( "roles", collectionAsString( subject.getRoles() ) );
put( "properties", mapAsString( subject.getProperties() ) );
}};
final String content = TemplateRuntime.execute( userDataTemplate, map ).toString();
writer.append( content );