code: @SuppressWarnings("unchecked")
      @Override
      protected ConnectionRequest getConnectionRequest(SocketChannel handle) {
          SelectionKey key = handle.keyFor(selector);
  
          if ((key == null) || (!key.isValid())) {
              return null;
          }
  
          return (ConnectionRequest) key.attachment();
      }
docs: {@inheritDoc}