} else {
throw new BeanCreationException("Not content for fault-detail is set! Either use file attribute or inline text value for fault-detail element.");
}
}
XmlMessageValidationContext context = new XmlMessageValidationContext();
String schemaValidation = faultDetailElement.getAttribute("schema-validation");
if (StringUtils.hasText(schemaValidation)) {
context.setSchemaValidation(Boolean.valueOf(schemaValidation));
}
String schema = faultDetailElement.getAttribute("schema");
if (StringUtils.hasText(schema)) {
context.setSchema(schema);
}
String schemaRepository = faultDetailElement.getAttribute("schema-repository");
if (StringUtils.hasText(schemaRepository)) {
context.setSchemaRepository(schemaRepository);
}
validationContext.addValidationContext(context);
}
if (!soapFaultDetails.isEmpty() || !soapFaultDetailPaths.isEmpty()) {