return (List) getHibernateTemplate().execute( new HibernateCallback(){
return (List<T>) getHibernateTemplate().execute( new HibernateCallback(){
    public List findAll(final Class klass, final Filter filter)    {        if ( filter == null )            return getHibernateTemplate().loadAll( klass );                return (List) getHibernateTemplate().execute( new HibernateCallback(){           public Object doInHibernate(Session session)            throws HibernateException, SQLException            {               Criteria c = session.createCriteria(klass);               parseFilter( c,filter );               return c.list();            }         });    }