Query q = session.getNamedQuery("findImageAnn");
newCache();   Query q = session.getNamedQuery("findCGCI");
            public Object doInHibernate(Session session)                    throws HibernateException {                Query q = session.getNamedQuery("findImageAnn");                q.setParameterList("img_list", arg0, new IntegerType());                Map map = findImageAnnotations(q);                emptyCache();                return map;            }