OMEModel o = (OMEModel) session.load(klazz,id); BaseModelUtils u = o.getUtils(); return o;
Criteria c = session.createCriteria(klazz); c.add(Expression.ilike("name",name,MatchMode.ANYWHERE)); return c.uniqueResult();
            public Object doInHibernate(Session session)                    throws HibernateException {                OMEModel o = (OMEModel) session.load(klazz,id);                BaseModelUtils u = o.getUtils();                return o;                                            }