final RenderingEngine renderingEngine = Components.getComponent(RenderingEngine.class);
final RenderingContext renderingContext = renderingEngine.getRenderingContext();
AreaDefinition areaDef = null;
BlossomTemplateDefinition templateDefinition;
try {
templateDefinition = (BlossomTemplateDefinition) renderingContext.getRenderableDefinition();
if (templateDefinition.getAreas().containsKey(attributeValue)) {
areaDef = templateDefinition.getAreas().get(attributeValue);
}
} catch (ClassCastException x) {
throw new TemplateProcessingException("Only Blossom, templates supported", x);