@Override
    public boolean supports(AuthenticationToken token) {
        return super.supports(token) || (_anonymousId != null && AnonymousToken.isAnonymous(token));
    }
@ Override public boolean supports ( AuthenticationToken token ) { return super . supports ( token ) || ( _anonymousId != null && AnonymousToken . isAnonymous ( token ) ) ; }
Override the parent method to also accept anonymous tokens