/** * Calls transformInContext on renderingContext. */ private void performTransformation(MutableRenderingContext renderingContext, Transformation transformation, TransformationContext context, Block block) throws MacroExecutionException { try { renderingContext.transformInContext(transformation, context, block); } catch (Exception e) { throw new MacroExecutionException("Failed to perform transformation", e); } }
protected void transform(Block block, TransformationContext transformationContext) throws TransformationException { if (isAsyncAllowed() || isCacheAllowed()) { this.transformationManager.performTransformations(block, transformationContext); } else { ((MutableRenderingContext) this.renderingContext).transformInContext(this.macroTransformation, transformationContext, block); } } }
TransformationContext transformationContext = new TransformationContext(transformedXDOM, syntax); transformationContext.setId(method.getClass().getName() + "#" + method.getName()); ((MutableRenderingContext) renderingContext).transformInContext(macroTransformation, transformationContext, transformedXDOM); } catch (TransformationException e) {
((MutableRenderingContext) this.renderingContext).transformInContext(transformation, context.getTransformationContext(), htmlMacroMarker); } finally {