final ServletOutputStream out = resp.getOutputStream();
out.print("angular.module('ASysMonApp').constant('configRaw', ");
out.flush();
final AJsonSerHelper json = new AJsonSerHelper(out);
json.startObject();
json.writeKey("applicationId");
json.writeStringLiteral(config.appInfo.getApplicationName());
json.writeKey("applicationDeployment");
json.writeStringLiteral(config.appInfo.getDeployment());
json.writeKey("applicationNode");
json.writeStringLiteral(config.appInfo.getNodeId());
json.writeKey("applicationVersion");
json.writeStringLiteral(config.appInfo.getVersion());
json.writeKey("applicationInstanceHtmlColorCode");
json.writeStringLiteral(config.appInfo.getHtmlColorCode());
json.writeKey("defaultPage");
json.writeStringLiteral(config.defaultPage);
json.writeKey("menuEntries");
json.startArray();
for(APresentationMenuEntry menuEntry: config.presentationMenuEntries) {
writeMenuEntry(menuEntry, json);
}
json.endArray();
json.endObject();
out.println(");");
}