Reverted Spring Security back to 3.1.7 because of runtime issues.