return (T) ((Query) builder.execute(context)).getSingleResult();
}
@Override
public long count() {
CountQueryPostProcessor counter = new CountQueryPostProcessor();
context.addJpaQueryPostProcessor(counter);
try {
Long result = (Long) ((Query) builder.execute(context)).getSingleResult();
return result.intValue();
} catch (RuntimeException e) {