public SOAPFault addFault(QName faultCode, String faultString, Locale locale)
throws SOAPException {
SOAPFaultImpl faultImpl = null;
if (this.element.getOMFactory() instanceof SOAP11Factory) {
SOAP11FaultImpl fault = new SOAP11FaultImpl(omSOAPBody, new Exception(
faultString), (SOAPFactory)this.element.getOMFactory());
faultImpl = new SOAPFaultImpl(fault);
} else if (this.element.getOMFactory() instanceof SOAP12Factory) {
SOAP12FaultImpl fault = new SOAP12FaultImpl(omSOAPBody, new Exception(
faultString), (SOAPFactory)this.element.getOMFactory());