Extracted spring security context in own file