code: public void close(final String key) {
          Optional.ofNullable(registered.get(key))
                  .ifPresent(a -> a.close());
  
      }
docs: Close the Adapter identified by the provided Key if it exists
  
  @param key : Adapter identifier