public IObject findByExample(final IObject example) throws ApiUsageException
public <T extends IObject> T findByExample(final T example) throws ApiUsageException
    public IObject findByExample(final IObject example) throws ApiUsageException    {        return (IObject) getHibernateTemplate().execute(new HibernateCallback() {            public Object doInHibernate(Session session)                    throws HibernateException {                Criteria c = session.createCriteria(example.getClass());                c.add(Example.create(example));                return c.uniqueResult();                            }        });    }