code: public void setContentHandler(ContentHandler handler)
    {
  
      if (handler == null)
      {
        throw new NullPointerException(XSLMessages.createMessage(XSLTErrorResources.ER_NULL_CONTENT_HANDLER, null)); //"Null content handler");
      }
      else
      {
        m_outputContentHandler = handler;
  
        if (null == m_serializationHandler)
        {
          ToXMLSAXHandler h = new ToXMLSAXHandler();
          h.setContentHandler(handler);
          h.setTransformer(this);
          
          m_serializationHandler = h;
        }
        else
          m_serializationHandler.setContentHandler(handler);
      }
    }
docs: Set the content event handler.
  
  NEEDSDOC @param handler
  @throws java.lang.NullPointerException If the handler
  is null.
  @see org.xml.sax.XMLReader#setContentHandler