public QueryInvocationContext(
     InvocationContext invocation, DaoMethod daoMethod, EntityManager entityManager) {
   this.entityManager = entityManager;
   this.params = Parameters.create(invocation.getMethod(), invocation.getParameters());
   this.invocation = invocation;
   this.daoMethod = daoMethod;
   this.entityClass = daoMethod.getDao().getEntityClass();
   this.queryPostProcessors = new LinkedList<QueryStringPostProcessor>();
   this.jpaPostProcessors = new LinkedList<JpaQueryPostProcessor>();
 }
 public Object executeQuery(Query jpaQuery) {
   return daoMethod.getQueryProcessor().executeQuery(jpaQuery);
 }