// Locate the decorator page
StandardFragment fragment = StandardFragmentProcessor.computeStandardFragmentSpec(
arguments.getConfiguration(), arguments, element.getAttributeValue(attributeName),
DIALECT_PREFIX_LAYOUT, PROCESSOR_NAME_FRAGMENT);
Template decoratortemplate = arguments.getTemplateRepository().getTemplate(new TemplateProcessingParameters(
arguments.getConfiguration(), fragment.getTemplateName(), arguments.getContext()));
element.removeAttribute(attributeName);
Document decoratordocument = decoratortemplate.getDocument();
Element decoratorrootelement = decoratordocument.getFirstElementChild();
// Gather all fragment parts from this page
Map<String,Object> fragments = findFragments(document.getElementChildren());