*/
public void setFaultActor(String faultActor) throws SOAPException {
if (this.element.getOMFactory() instanceof SOAP11Factory) {
if (this.fault.getRole() == null) {
SOAP11FaultRoleImpl faultRoleImpl = new SOAP11FaultRoleImpl(
this.fault, (SOAPFactory)this.element.getOMFactory());
faultRoleImpl.setRoleValue(faultActor);
this.fault.setRole(faultRoleImpl);
} else {
SOAPFaultRole role = this.fault.getRole();
role.setRoleValue(faultActor);
}
} else if (this.element.getOMFactory() instanceof SOAP12Factory) {
if (this.fault.getRole() == null) {
SOAP12FaultRoleImpl faultRoleImpl = new SOAP12FaultRoleImpl(
this.fault, (SOAPFactory)this.element.getOMFactory());
faultRoleImpl.setRoleValue(faultActor);
this.fault.setRole(faultRoleImpl);
} else {
SOAPFaultRole role = this.fault.getRole();
role.setRoleValue(faultActor);
}