Setting up Guard to use Spring.