Change application security mode from manual to automatic (using the spring security core framework)