public Map<String, FreeMarkerProperty> propertiesForContext(final ContextEntity context) { Map<String, FreeMarkerProperty> result = translatePropertyList(utils().getPropertyValues(context), context.getName(), context.getId(), null, null, null); result.put(RESERVED_PROPERTY_DOMAIN, new FreeMarkerProperty(getDomainName(context), RESERVED_PROPERTY_DOMAIN)); result.put(RESERVED_PROPERTY_NAME_ALIAS, new FreeMarkerProperty(context.getNameAlias(), RESERVED_PROPERTY_NAME_ALIAS)); return result; }