DataType faultType = (DataType)exceptionType.getLogical();
QName faultName = ((XMLType)faultType.getLogical()).getElementName();
Class<?> faultBean = null;
final WebFault fault = cls.getAnnotation(WebFault.class);
if (fault != null) {
if (!"".equals(fault.name()) || !"".equals(fault.targetNamespace())) {
QName faultQName = ((XMLType)faultType.getLogical()).getElementName();
String faultNS =
"".equals(fault.targetNamespace()) ? faultQName.getNamespaceURI() : fault.targetNamespace();
String faultLocal = "".equals(fault.name()) ? faultQName.getLocalPart() : fault.name();
faultName = new QName(faultNS, faultLocal);