docs: public PmiModuleConfig loadDescriptor(String fileName, boolean validate, boolean loadFromClassPathOnly)
                      throws Exception {
          loadFromClassPathOnly = false;
          if (tc.isEntryEnabled())
              Tr.entry(tc, "loadDescriptor: parsing stats xml " + fileName + "; dtd validation: " + validate);
  
          // reset variables:
          oneModule = null;
          currentData = null;
          submoduleName = null;
          submoduleData = null;
          _fileName = fileName;
          _validate = validate;
          InputStream istream = null;
          boolean usingCC = false;
  
          if (fileName.indexOf('=') != (-1)) {
              // We check for an equals symbol, so that we can determine if
              // this resource should be loaded from the extenstion point repository.
              // Extension point lookups are encoded using a 'EXTENSION=xxxx'
              // encoding scheme.
              String[] tokens = fileName.split("=");
              if (tokens.length > 1) {
                  if (tokens[0].equalsIgnoreCase(EXTENSION_TAG)) {
                      bExtension = true;
                      _fileName = tokens[1];
                      try {
                          parseFromExtension(_fileName);
                      } catch (Exception ex) {
                          if (tc.isDebugEnabled())
                              com.ibm.ws.ffdc.FFDCFilter.processException(ex, "com.ibm.ws.pmi.server.ModuleConfigParser.loadDescriptor", "97", this);
                          throw ex;
                      }
                      if (tc.isEntryEnabled())
                          Tr.exit(tc, "loadDescriptor");
  
                      return oneModule;
                  }
              }
          }
          // No extension
          bExtension = false;
          if (istream == null) {
              istream = getResourcefromBundle(fileName);
              //System.out.println("ISTREME is ++++++++++++++++ " + istream);
              if (istream == null) {
                  istream = getClass().getResourceAsStream(fileName);
              }
              usingCC = false;
              if (istream == null) {
                  istream = Thread.currentThread().getContextClassLoader().getResourceAsStream(fileName);
                  usingCC = true;
              }
              if (istream == null) {
                  istream = Thread.currentThread().getContextClassLoader().getResourceAsStream(fileName.substring(1));
                  usingCC = true;
              }
              if (istream == null) {
                  Tr.error(tc, "PMI0010W", fileName);
                  return null;
              }
  
          }
  
          try {
              //**JDK1.4.1 fix
              //**XMLReader parser = ParserFactory.createXMLReader("org.apache.xerces.parsers.SAXParser");
              XMLReader parser = ParserFactory.createXMLReader();
              parser.setFeature("http://xml.org/sax/features/namespaces", true);
  
              // commenting this -D flag
              // boolean validateDescriptors = Boolean.getBoolean(VALIDATE_DESCRIPTOR_PROPERTY);
              // skip DTD validation for pre-defined modules (perf.dtd)
              // do DTD validataion for custom PMI modules (stats.dtd)
              parser.setFeature("http://xml.org/sax/features/validation", validate);
              //** FIX: need to remove this feature?
              parser.setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd", validate);
              parser.setEntityResolver(this);
              parser.setContentHandler(this);
              parser.setErrorHandler(this);
              parser.parse(new InputSource(istream));
          } catch (Exception ex) {
              if (tc.isDebugEnabled())
                  ex.printStackTrace();
              com.ibm.ws.ffdc.FFDCFilter.processException(ex, "com.ibm.ws.pmi.server.ModuleConfigParser.loadDescriptor", "97", this);
              throw ex;
          } finally {
              istream.close();
          }
  
          String uid = PerfModules.getModuleUID(fileName);
  
          //int index = uid.lastIndexOf(".");
          //String newUID = uid.substring(index+1);
          // instantiate oneModule
          //oneModule = new PmiModuleConfig (newUID);
          com.ibm.ws.pmi.stat.StatsConfigHelper.translateAndCache(oneModule, null);
          //        System.out.println("OneModule = " + oneModule);
          if (tc.isEntryEnabled())
              Tr.exit(tc, "loadDescriptor");
  
          return oneModule;
      }