[DROOLS-541] implement session cache
(cherry picked from commit 87607768d6b0c1e82925e2a3d07d1b9f5e32ef44)