private SoyValue renderRenderUnitNode(final RenderUnitNode renderUnitNode) { RenderableThunk thunk = new RenderableThunk() { @Override protected void doRender(Appendable appendable) throws IOException { renderBlock(renderUnitNode, appendable); } }; SanitizedContentKind contentKind = renderUnitNode.getContentKind(); if (contentKind != null) { return LazySanitizedContents.forThunk(thunk, ContentKind.valueOf(contentKind.name())); } else { return StringData.forThunk(thunk); } }