public RepoProxyHandler(boolean stateful) { if (stateful) { this.session = HibernateUtil.getSessionFactory().openSession(); this.stateful = true; }
public RepoProxyHandler() { this(false);
    public RepoProxyHandler(boolean stateful) {        if (stateful) {            this.session = HibernateUtil.getSessionFactory().openSession();            this.stateful = true;        }    }