public void setSubCode(SOAPFaultSubCode subCode)
throws SOAPProcessingException {
if (!((parentNode instanceof SOAP11FaultSubCodeImpl) ||
(parentNode instanceof SOAP11FaultCodeImpl))) {
throw new SOAPProcessingException(
"Expecting SOAP 1.1 implementation of SOAP Fault Sub " +
"Code. But received some other implementation");
}
super.setSubCode(subCode);
}