@Override
  public String getTemplateText(final PsiFile file, final String fileText, final String nameWithoutExtension) {
    if (GuiFormFileType.INSTANCE.equals(file.getFileType())) {
      LwRootContainer rootContainer = null;
      try {
        rootContainer = Utils.getRootContainer(fileText, null);
      }
      catch (Exception ignored) {
      }
      if (rootContainer != null && rootContainer.getClassToBind() != null) {
        try {
          Element element = JDOMUtil.load(fileText);
          Attribute attribute = element.getAttribute(UIFormXmlConstants.ATTRIBUTE_BIND_TO_CLASS);
          attribute.detach();
          return JDOMUtil.write(element, CodeStyle.getSettings(file).getLineSeparator());
        }
        catch (Exception ignored) {
        }
      }
    }
    return null;
  }
@Override
  public String getTemplateText(final PsiFile file, final String fileText, final String nameWithoutExtension)