private static boolean isScriptBlock(Block block) {
    if (block instanceof TemplateXmlTagBlock) {
      return ((TemplateXmlTagBlock)block).isScriptBlock();
    }
    return false;
  }
private static boolean isScriptBlock(Block block)