code: public synchronized boolean isRunning() {
          if (null == process) return false;
  
          try {
              process.exitValue();
              return false;
          } catch(IllegalThreadStateException itse) {
              return true;
          }
      }
docs: Check if Local BrowserMob Proxy is running.
  
  @return "true" if Local BrowserMob Proxy is running.