protected DataReader<Node> getNodeDataReader(Message message) {
return getDataReader(message, Node.class);
}
private void setSchemaInMessage(Service service, Message message, DataReader<?> reader) {
SchemaValidationType type = ServiceUtils.getSchemaValidationType(message);
if (type.equals(SchemaValidationType.BOTH) || type.equals(SchemaValidationType.IN)) {
//all serviceInfos have the same schemas
Schema schema = EndpointReferenceUtils.getSchema(service.getServiceInfos().get(0),
message.getExchange().getBus());
reader.setSchema(schema);
}