code: protected void register(Serializer serializer, String... mediaTypes) {
          for (String mediaType : mediaTypes) {
              this.serializerMap.put(mediaType, serializer);
          }
      }
docs: Register the serializer with a given set of media types.
  
  @param serializer The serializer to register.
  @param mediaTypes The media types to register it for.