}
protected void writeRequest(XmlRpcStreamRequestConfig pConfig, OutputStream pStream, XmlRpcRequest pRequest)
throws XmlRpcException {
ContentHandler h = getClient().getXmlWriterFactory().getXmlWriter(pConfig, pStream);
XmlRpcWriter xw = new XmlRpcWriter(pConfig, h, getClient().getTypeFactory());
try {
xw.write(pRequest);
} catch (SAXException e) {
Exception ex = e.getException();
if (ex != null && ex instanceof XmlRpcException) {
throw (XmlRpcException) ex;
} else {