Move this method to SessionManager and change name to something else.
moved to SessionManager.makeSession added test in manager/session/test/SessionManagerTest