Thanks for the fast feedback. Can anyone suggest a reimplementation for the original code block?
@Inject private Environment environment; @Inject private Logger logger; private String renderMarkup(RenderCommand renderCommand) { MarkupWriter markupWriter = new MarkupWriterImpl(); // validation track ValidationDecorator decorator = new DefaultValidationDecorator(environment, assetSource.getExpandedAsset("${tapestry.spacer-image}"), markupWriter); environment.push(ValidationDecorator.class, decorator); RenderQueueImpl renderQueue = new RenderQueueImpl(logger); renderQueue.push(renderCommand); renderQueue.run(markupWriter); environment.pop(ValidationDecorator.class); return markupWriter.toString().replaceAll("^\\n+", "").replaceAll("\\n+$", ""); } Best regards and thanks... KEN