* if false, this method generaets a completely SAX event sequence on its own.
*/
protected abstract void writePayloadTo(ContentHandler contentHandler, ErrorHandler errorHandler, boolean fragment) throws SAXException;
public Message toSAAJ(Packet p, Boolean inbound) throws SOAPException {
SAAJMessage message = SAAJFactory.read(p);
if (message instanceof MessageWritable)
((MessageWritable) message)
.setMTOMConfiguration(p.getMtomFeature());
if (inbound != null) transportHeaders(p, inbound, message.readAsSOAPMessage());
return message;
}