Some changes made to support Hibernate sessions from the web application