public Message process(Message message) throws ActionProcessingException {
Map transformedBeans = (Map) message.getBody().get();
if(transformedBeans != null) {
Driver driver = (Driver) transformedBeans.get("Driver");
Policy policy = (Policy) transformedBeans.get("Policy");
message.getBody().add("Driver", driver);
message.getBody().add("Policy", policy);
logger.info("Moved the transformed driver and policy");
}
return message;