Intializing Spring and Hibernate templates