Hibernate session filter implementation.