getHibernateTemplate().saveOrUpdate(gateway);
HibernateTemplate hibernate = getHibernateTemplate(); DaoUtils.checkDuplicates(hibernate, gateway, NAME_PROP_NAME, new DuplicateNameException(gateway.getName()));   hibernate.saveOrUpdate(gateway);
    public void storeGateway(Gateway gateway) {        getHibernateTemplate().saveOrUpdate(gateway);    }