refactoring SpringDataTemplate