code: public XmlObjectSerializer setOutput(SerializerContext serializerContext, OutputStream out, String charset) throws SerializerException, IOException
  	{
  		try
  		{
  			serializerContext.serializer.setOutput(out, charset == null ? "UTF-8" : charset);
  		}
  		catch (IllegalArgumentException e)
  		{
  			throw new SerializerException("can't configure serializer", e);
  		}
  		catch (IllegalStateException e)
  		{
  			throw new SerializerException("can't configure serializer", e);
  		}
  		return this;
  	}
docs: Set the output of the serializer.
  
  @param serializerContext
  A {@link SerializerContext}.
  @param out
  The {@link OutputStream} to write to.
  @param charset
  The charset. The serializer will use "UTF-8" if this is <code>null</code>.
  @return
  @throws SerializerException
  @throws IOException