session.setFlushMode( FlushMode.NEVER );
session.setFlushMode( FlushMode.COMMIT );
    private Session acquireBindAndConfigureSession() throws HibernateException    {        debug("Opening and binding session.");        Session session = factory.openSession();        session.setFlushMode( FlushMode.NEVER );        bindSession(session);        return session;    }