return ((SecureContext) ContextHolder.getContext()) .getAuthentication();
Authentication auth = SecureContextUtils.getSecureContext() .getAuthentication();  if (!authenticationTrustResolver.isAnonymous(auth)) { return auth; }
    private Authentication getAuthentication() {        if ((ContextHolder.getContext() != null)            && ContextHolder.getContext() instanceof SecureContext) {            return ((SecureContext) ContextHolder.getContext())            .getAuthentication();        }        return null;    }