code: static void serialize(DataOutput out, Serializers serializers)
        throws IOException {
      StringBuilder msg = new StringBuilder(String.format("Serialize %d serializer classes:", serializers.serializers.values().size()));
      int size = serializers.serializers.values().size();
  
      out.writeInt(size);
      if (size > 0) {
        for (SerializerWrapper sw : serializers.serializers.values()) {
          int index = sw.index;
          String name = sw.serializer.getClass().getName();
  
          out.writeInt(index);
          out.writeUTF(name);
  
          msg.append(String.format("%n  (%d) %s", index, name));
        }
        LOGGER.info(msg.toString());
      }
    }
docs: Serializes this class into a data output.
  
  @param out data output
  @param serializers serializers instance
  @throws IOException if an io error occurs