* @throws org.apache.roller.weblogger.WebloggerException on any error
*/
public Query getNamedQuery(String queryName)
throws WebloggerException {
EntityManager em = getEntityManager(false);
Query q = em.createNamedQuery(queryName);
// Never flush for queries. Roller code assumes this behavior
q.setFlushMode(FlushModeType.COMMIT);
return q;
}