public <W extends T> void add(Class<W> clazz, T server) {
    try (LockResource r = new LockResource(mLock)) {
      mRegistry.put(clazz, server);
    }
  }
public < W extends T > void add ( Class < W > clazz , T server ) { try ( LockResource r = new LockResource ( mLock ) ) { mRegistry . put ( clazz , server ) ; } }
@param clazz the class of the {@link Server} to add
@param server the {@link Server} to add
@param <W> the type of the {@link Server} to add