public synchronized void stop(StopContext context) { try { remoteNamingService.stop(); } catch (IOException e) { throw new IllegalStateException("Failed to stop remote naming service", e); } }