simple utils for spring security