@classmethod
def lookup_boxtype(cls, name):
    """
        Find the appropriate BoxType associated with the given name.
        """
    for spec in cls.definitions.values():
        for boxlist in spec.values():
            for boxtype in boxlist:
                if boxtype.name == name:
                    return boxtype
