code: public static boolean isAvailable() {
      try {
        String osName = System.getProperty("os.name");
        if (!osName.startsWith("Linux")) {
          LOG.info("ProcfsBasedProcessTree currently is supported only on "
              + "Linux.");
          return false;
        }
      } catch (SecurityException se) {
        LOG.warn("Failed to get Operating System name. " + se);
        return false;
      }
      return true;
    }
docs: Checks if the ProcfsBasedProcessTree is available on this system.
  
  @return true if ProcfsBasedProcessTree is available. False otherwise.