public Object read(MessagePartInfo part, XMLStreamReader input) {
Type type = databinding.getType(part);
try {
if (schemas != null) {
StaxValidationManager mgr = bus.getExtension(StaxValidationManager.class);
if (mgr != null) {
mgr.setupValidation(input, schemas);
}
}
return reader.read(input, type);
} catch (Exception e) {
throw new Fault(e);