Wrap () { BlockWithParent parent = getParent(); if (parent instanceof TemplateLanguageBlock) { return ((TemplateLanguageBlock)parent).substituteTemplateChildWrap(this, myOriginal.getWrap()); } return myOriginal.getWrap(); }