def METHOD_NAME(self, METHOD_NAME):
    if METHOD_NAME.endswith(':' + _WILDCARD_TOKEN):
        return TokenRegistry(self, METHOD_NAME)
    elif METHOD_NAME.endswith(":" + _DEFAULT_TOKEN):
        return TokenRegistry(self.root, METHOD_NAME)
    else:
        raise exc.ArgumentError("invalid token: %s" % METHOD_NAME)