if (marshaller != null) {
validationEventHandler = marshaller.getEventHandler();
} else if (unmarshaller != null) {
validationEventHandler = unmarshaller.getEventHandler();
}
if (validationEventHandler == null || !validationEventHandler.handleEvent(new ValidationEventImpl(ValidationEvent.ERROR, message, locator, cause))) {
throw new UnmarshalException(message, cause);
}
}