public synchronized void stop(StopContext context) {
   try {
     remoteNamingService.stop();
   } catch (IOException e) {
     throw new IllegalStateException("Failed to stop remote naming service", e);
   }
 }
 public synchronized void start(StartContext context) throws StartException {
   try {
     final Context namingContext =
         new NamingContext(namingStore.getValue(), new Hashtable<String, Object>());
     remoteNamingService = new RemoteNamingService(namingContext);
     remoteNamingService.start(endpoint.getValue());
   } catch (Exception e) {
     throw new StartException("Failed to start remote naming service", e);
   }
 }