code: private boolean isValidElement(String element) {
  
          boolean validateNewElement = Boolean.valueOf(getParamValidateNewElement()).booleanValue();
          if (ALL.equals(getParamTemplate()) || !validateNewElement) {
              return true;
          }
  
          return isValidTemplateElement(getParamTemplate(), element);
      }
docs: Checks if the selected new element is valid for the selected template.<p>
  
  @param element the element name
  
  @return true if ALL_TEMPLATES selected or the element is valid for the selected template; otherwise false