code: public static THttpService ofFormats(
              Map<String, ?> implementations,
              SerializationFormat defaultSerializationFormat,
              Iterable<SerializationFormat> otherAllowedSerializationFormats) {
  
          return new THttpService(ThriftCallService.of(implementations),
                                  newAllowedSerializationFormats(defaultSerializationFormat,
                                                                 otherAllowedSerializationFormats));
      }
docs: Creates a new multiplexed {@link THttpService} with the specified service implementations, supporting
  the protocols specified in {@code allowedSerializationFormats} and defaulting to the specified
  {@code defaultSerializationFormat} when the client doesn't specify one.
  
  <p>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 implementations a {@link Map} whose key is service name and value is the implementation of
  {@code *.Iface} or {@code *.AsyncIface} service interface generated by
  the Apache Thrift compiler
  @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