// Is it worth being smarter? Look for matching content first and create those which aren't found????
List removeList = new ArrayList(bindingFault.getEExtensibilityElements());
removeExtensebilityElements(bindingFault.getEExtensibilityElements(), removeList);
SOAPFactory soapFactory = SOAPFactory.eINSTANCE;
SOAPFault soapFault = soapFactory.createSOAPFault();
soapFault.setUse((getUseOption(bindingFault) == USE_ENCODED) ? "encoded" : "literal");
soapFault.setName(fault.getName());
// soapFault.setNamespaceURI(getNamespace(bindingFault));
if (getUseOption(bindingFault) == USE_ENCODED && getStyleOption(bindingFault) == STYLE_RPC)
{
List encodingList = new BasicEList();
encodingList.add("http://schemas.xmlsoap.org/soap/encoding/");
soapFault.setEncodingStyles(encodingList);
}
bindingFault.addExtensibilityElement(soapFault);
}