Fixing infection after changes to hibernate session