public List executeQuery (ObjectContext context, QuerySpecification spec)
{
QueryGenerator generator = new QueryGenerator(spec, context.typeProvider(spec.getEntityName()));
String queryString = generator.generate();
Map queryParams = generator.queryParams();
JPAContext jpa = (JPAContext)context;
return jpa.executeQuery(jpa._entityManager.createQuery(queryString), queryParams);
}