/** * Removes the naming server from the naming context. * * @param context The stop context. */ public synchronized void stop(StopContext context) { NamingContext.setActiveNamingStore(null); try { namingStore.close(); } catch (NamingException e) { throw new RuntimeException(e); } }