remove global session and add transaction manager support