/**
* build json query command and send it to drools
*/
private QueryResults query(String queryName, Object[] args) {
Command command = CommandFactory.newQuery("persons", queryName, args);
String queryStr = template.requestBody("direct:marshall", command, String.class);
String json = template.requestBody("direct:test-session", queryStr, String.class);
ExecutionResults res = (ExecutionResults) template.requestBody("direct:unmarshall", json);
return (QueryResults) res.getValue("persons");