Refactoring for spring security
Refactoring for spring security