code: public static ServerSocketPredicate attr(String key, Object value) {
      return socket -> Objects.equals(socket.get(key), value);
    }
docs: Returns a predicate that tests the socket attributes against the given key-value pair. In a
  clustered environment, <code>value<code> should implement {@link java.io.Serializable}.