Fixing problem with dependencies and Hibernate template version