def METHOD_NAME(cls):
    if not cls._prefix_map:
        for ns in cls._namespaces:
            # index by upper case for uniformity of search
            cls._prefix_map[ns.prefix.upper()] = ns
    return cls._prefix_map