public static boolean checkDuplicates(HibernateTemplate hibernate, BeanWithId obj, String queryName, Object value, UserException exception) { if (value == null) {
public static boolean checkDuplicates(final HibernateTemplate hibernate, final BeanWithId obj, final String propName, UserException exception) { Object propValue = getProperty_(obj, propName); if (propValue == null) {
    public static boolean checkDuplicates(HibernateTemplate hibernate, BeanWithId obj,            String queryName, Object value, UserException exception) {        if (value == null) {            return false;        }                List objs = hibernate.findByNamedQueryAndNamedParam(queryName, "value", value);        return checkDuplicates(obj, objs, exception);    }