code: public static StatsInstance getStatsInstance(String[] path) {
          StatsInstance instance = null;
  
          if (path != null) {
              if (tc.isEntryEnabled())
                  Tr.entry(tc, "getStatsInstance: " + _arrayToString(path));
  
              ModuleItem parent = PmiRegistry.findModuleItem(path);
              if (parent != null) {
                  Object o = parent.getInstance();
                  if (o instanceof com.ibm.ws.pmi.factory.StatsInstanceImpl)
                      instance = (StatsInstance) o;
              }
          } else {
              if (tc.isEntryEnabled())
                  Tr.entry(tc, "getStatsInstance: path is null");
          }
  
          if (tc.isEntryEnabled())
              Tr.exit(tc, "getStatsInstance");
  
          return instance;
      }
docs: *****************************************************************************
  This method may be used to retrieve an existing StatsInstance object. The object
  should be specified using a String array specifying the path to use to retrieve the
  object. If a StatsInstance object can not be found using the specified path, a null
  value is returned.
  
  @param path A String array. The string elements in this parameter specify the hierarchy of the stats instance being retrieved. If no stats instance is found matching the
  path provided, the response object will be null.
  *****************************************************************************