code: public boolean checkDebugEnabled(String tplName) {
  
          // Check first the exclude patterns. Any matching pattern in the exclude
          // list means that the debugging is disabled for the given template.
          if (debugNsExclude != null && debugNsExclude.matcher(tplName).matches()) {
              return false;
          }
  
          // Now check the include patterns. Any matching pattern here means that
          // the debugging for this template is enabled.
          if (debugNsInclude != null && debugNsInclude.matcher(tplName).matches()) {
              return true;
          }
  
          // If we get here, then the template didn't match anything. By default,
          // the debugging is turned off.
          return false;
      }
docs: A utility function that checks a given template name against the list of
  debug include and exclude patterns.
  
  @param tplName
  name of the template to check
  
  @return flag indicating whether debugging should be activated or not