code: public static boolean isAvailable()
    {
      try {
        return create() != null;
      } catch (Exception e) {
        log.log(Level.FINEST, e.toString(), e);
  
        return false;
      }
    }
docs: Checks if the heap is available