return checkDuplicates(obj, objs, exception);
return checkDuplicates(bean, objs, exception);
    public static boolean checkDuplicates(final HibernateTemplate hibernate,            final BeanWithId obj, final String propName, UserException exception) {        Object propValue = getProperty_(obj, propName);        if (propValue == null) {            return false;        }        final Criterion expression = Restrictions.eq(propName, propValue);        HibernateCallback callback = new HibernateCallback() {            public Object doInHibernate(Session session) {                Criteria criteria = session.createCriteria(obj.getClass()).add(expression)                        .setProjection(Projections.property(ID_PROPERTY_NAME));                return criteria.list();            }        };        List objs = hibernate.executeFind(callback);        return checkDuplicates(obj, objs, exception);    }