/** * Returns the session with the given identifier. * * @param sessionId the session identifier * @return the primitive session */ protected Session<C> getSession(long sessionId) { return getSession(SessionId.from(sessionId)); }
/** * Returns the current session. * * @return the current session */ protected Session<C> getCurrentSession() { return getSession(context.currentSession().sessionId()); }