}
else if (StringUtils.hasLength(faultAnnotation.customFaultCode())) {
definition.setFaultCode(QName.valueOf(faultAnnotation.customFaultCode()));
}
definition.setFaultStringOrReason(faultAnnotation.faultStringOrReason());
definition.setLocale(StringUtils.parseLocaleString(faultAnnotation.locale()));
return definition;
}
else {
return null;
}