@Override public void dispose() { if (serviceRegistration != null) { serviceRegistration.unregister(); } super.dispose(); }
@Override public void start(Server server) throws IOException { super.start(server); serviceRegistration = context.registerService(LocalTransport.class, this, null); }