public static JoinGroupRequestProtocolCollection metadataRequest(WorkerState workerState) {
        return new JoinGroupRequestProtocolCollection(Collections.singleton(
                new JoinGroupRequestProtocol()
                        .setName(EAGER.protocol())
                        .setMetadata(ConnectProtocol.serializeMetadata(workerState).array()))
                .iterator());
    }
Returns the collection of Connect protocols that are supported by this version along
with their serialized metadata. The protocols are ordered by preference.

@param workerState the current state of the worker metadata
@return the collection of Connect protocol metadata
connect/runtime/src/main/java/org/apache/kafka/connect/runtime/distributed/ConnectProtocol.java