code: public static Function<Service<RpcRequest, RpcResponse>, THttpService> newDecorator(
              SerializationFormat defaultSerializationFormat,
              SerializationFormat... otherAllowedSerializationFormats) {
  
          requireNonNull(otherAllowedSerializationFormats, "otherAllowedSerializationFormats");
          return newDecorator(defaultSerializationFormat, Arrays.asList(otherAllowedSerializationFormats));
      }
docs: Creates a new decorator that supports only the formats specified and defaults to the specified
  {@code defaultSerializationFormat} when the client doesn't specify one.
  Currently, the only way to specify a serialization format is by using the HTTP session protocol and
  setting the Content-Type header to the appropriate {@link SerializationFormat#mediaType()}.
  
  @param defaultSerializationFormat the default serialization format to use when not specified by the
  client
  @param otherAllowedSerializationFormats other serialization formats that should be supported by this
  service in addition to the default