code: public static HeapDump create()
    {
      try {
        ClassLoader loader = Thread.currentThread().getContextClassLoader();
  
        Class<?> heapDumpClass
          = Class.forName("com.caucho.v5.profile.ProHeapDump", false, loader);
  
        _heapDump = (HeapDump) heapDumpClass.newInstance();
  
        return _heapDump;
      } catch (ClassNotFoundException e) {
        log.log(Level.FINEST, e.toString(), e);
  
        throw new ConfigException(L.l("HeapDump requires Baratine with JNI"));
      } catch (Exception e) {
        throw ConfigException.wrap(e);
      }
    }
docs: Creates/returns the HeapDump instance. Will throw an IllegalStateException
  if Resin Professional is not available.