Update to Spring 4.0.0.
Move to Java Spring Security configuration.