docs: public static ProtocolSerializer getProtocolSerializer(ProtocolHeader header, Protocol protocol) throws JsonGenerationException, JsonMappingException, IOException{
          final String s = serializeProtocol(header, protocol);
          return new ProtocolSerializer(){
  
              @Override
              public String serializerAsString() {
                  return s;
              }
  
          };
      }