def get(key, default=-1):
        """Backport support for original codes."""
        if isinstance(key, int):
            return Registration(key)
        if key not in Registration._member_map_:
            extend_enum(Registration, key, default)
        return Registration[key]