Added automatic hibernate session creation to consumers.