boolean checkPidMatches() throws IllegalStateException, IOException, PidUnavailableException {
  final RuntimeMXBean proxy=ManagementFactory.newPlatformMXBeanProxy(this.server,ManagementFactory.RUNTIME_MXBEAN_NAME,RuntimeMXBean.class);
  final int remotePid=ProcessUtils.identifyPid(proxy.getName());
  if (remotePid != this.pid) {
    throw new IllegalStateException("Process has different pid '" + remotePid + "' than expected pid '"+ this.pid+ "'");
  }
 else {
    return true;
  }
}

boolean checkPidMatches ( ) throws IllegalStateException , IOException , PidUnavailableException { final RuntimeMXBean proxy = ManagementFactory . newPlatformMXBeanProxy ( this . server , ManagementFactory . RUNTIME_MXBEAN_NAME , RuntimeMXBean . class ) ; final int remotePid = ProcessUtils . identifyPid ( proxy . getName ( ) ) ; if ( remotePid != this . pid ) { throw new IllegalStateException ( "Process has different pid '" + remotePid + "' than expected pid '" + this . pid + "'" ) ; } else { return true ; } }
ensures that the other process identifies itself by the same pid used by this stopper to connect to that process . not used except in test .
