code: public <T extends Params> void serializeParams(OutputStream output, T param) throws IOException {
          // TODO: Add params-specific options.
          objectMapper.writerFor(param.getClass()).writeValue(output, param);
      }
docs: Serializes the given parameter object to the output stream.
  
  @param output The {@link OutputStream} to serialize the parameter into.
  @param param  The {@link Params} to serialize.
  @param <T>    The type of the parameter object to serialize.
  @throws IOException on general I/O error.