private static final class SingleResultQueryProcessor implements QueryProcessor
{
@Override
public Object executeQuery(Query query, CdiQueryInvocationContext context)
{
SingleResultType style = context.getSingleResultStyle();
switch (style)
{
case JPA:
return query.getSingleResult();
case OPTIONAL: