Returns true if token is currently registered.
true
token
static bool containsToken(Object token) { return _middlewaresByToken.containsKey(token); }