* @see org.apache.axis2.jaxws.message.XMLPart#outputTo(javax.xml.stream.XMLStreamWriter, boolean)
*/
public void outputTo(XMLStreamWriter writer, boolean consume)
throws XMLStreamException, WebServiceException {
Reader2Writer r2w = new Reader2Writer(getXMLStreamReader(consume));
r2w.outputTo(writer);
}
public XMLStreamReader getXMLStreamReader(boolean consume) throws WebServiceException {
if (consume) {
if (root.getBuilder() != null && !root.getBuilder().isCompleted()) {