public List findAllByString( final Class klass,
public <T extends IObject> List<T> findAllByString( final Class<T> klass,
    public List findAllByString(            final Class klass,             final String fieldName,             final String value,             final boolean caseSensitive,             final Filter filter)     throws ApiUsageException    {        return (List) getHibernateTemplate().execute(new HibernateCallback() {            public Object doInHibernate(Session session)                    throws HibernateException {                Criteria c = session.createCriteria(klass);                parseFilter( c,filter );                                if (caseSensitive)                    c.add(Expression.like(fieldName,value,MatchMode.ANYWHERE));                else                     c.add(Expression.ilike(fieldName,value,MatchMode.ANYWHERE));                                return c.list();                            }        });    }