Mihir | Removing Hibernate session's deprecated method for getting a connection