if ( example == null ) throw new ApiUsageException( "Example argument to findAllByExample cannot be null.");
    public List findAllByExample(final IObject example, final Filter filter)    {        if ( example == null )            throw new ApiUsageException(                    "Example argument to findAllByExample cannot be null.");                return (List) getHibernateTemplate().execute(new HibernateCallback() {            public Object doInHibernate(Session session)                    throws HibernateException {                Criteria c = session.createCriteria(example.getClass());                c.add(Example.create(example));                parseFilter(c,filter);                return c.list();                            }        });    }