Added hibernate session creation in "try". Added SessionRepository.