@Override
    public SqlSession getRequestSession() {
        SqlSession session = thSession.get();
        if (session == null) {
            try {
                session = MyBatisManager.getProjectSessionFactory().openSession();
            } catch (Exception ex) {
                Logger.getLogger(ThreadLocalRequestProjectsSessionProvider.class.getName()).log(Level.SEVERE, null, ex);
            }
            thSession.set(session);
        }
        return session;
    }