return (IObject) getHibernateTemplate().execute(new HibernateCallback() {
return (T) getHibernateTemplate().execute(new HibernateCallback() {
    public IObject findByString(    final Class klass,     final String fieldName,     final String value)     throws ApiUsageException    {        return (IObject) getHibernateTemplate().execute(new HibernateCallback() {            public Object doInHibernate(Session session)                    throws HibernateException {                Criteria c = session.createCriteria(klass);                c.add(Expression.like(fieldName,value));                return c.uniqueResult();                            }        });    }