protected ValueLoadContext createLoadContext() { ValueLoadContext loadContext = ValueLoadContext.create(); if (store != null) loadContext.setStoreName(store); loadContext.setSoftDeletion(softDeletion); ValueLoadContext.Query query = ValueLoadContext.createQuery(queryString); for (Map.Entry<String, Object> entry : parameters.entrySet()) { if (noConversionParams.contains(entry.getKey())) query.setParameter(entry.getKey(), entry.getValue(), false); else query.setParameter(entry.getKey(), entry.getValue()); } loadContext.setQuery(query); loadContext.getQuery().setFirstResult(firstResult); loadContext.getQuery().setMaxResults(maxResults); loadContext.setJoinTransaction(transactional); return loadContext; }