docs: private boolean isValidTemplateElement(String template, String element) {
  
          List elements = new ArrayList(getTemplateElements(template));
          Iterator i = elements.iterator();
          while (i.hasNext()) {
              CmsDialogElement currElement = (CmsDialogElement)i.next();
              if (element.equals(currElement.getName())) {
                  return true;
              }
          }
  
          return false;
      }