/**
* Creates the output root data.
* @return the output root data, not null
*/
protected FlexiBean createRootData() {
FlexiBean out = super.createRootData();
SecurityDocument latestSecDoc = data().getSecurity();
SecurityDocument versionedSecurity = data().getVersioned();
out.put("latestSecurityDoc", latestSecDoc);
out.put("latestSecurity", latestSecDoc.getSecurity());
out.put("securityDoc", versionedSecurity);
out.put("security", versionedSecurity.getSecurity());
out.put("deleted", !latestSecDoc.isLatest());
addSecuritySpecificMetaData(versionedSecurity.getSecurity(), out);
out.put("customRenderer", FreemarkerCustomRenderer.INSTANCE);
return out;
}