.getCallbackRegistry();
LifecycleCallbackRegistry testCallbacks = new LifecycleCallbackRegistry(context
.getEntityResolver());
DataContextEJBQLQueryCallback listener = new DataContextEJBQLQueryCallback();
testCallbacks.addDefaultListener(LifecycleEvent.POST_LOAD, listener, "postLoad");
context.getEntityResolver().setCallbackRegistry(testCallbacks);
try {
String ejbql = "select count(p), count(distinct p.estimatedPrice), max(p.estimatedPrice), sum(p.estimatedPrice) from Painting p";