@staticmethod
def _get_id(lookup, val):
    """Get the UUID object associated with the given name from the
        given lookup structure, None if no ID is found or the value isn't
        a string.
        """
    try:
        return lookup[val.lower()]
    except AttributeError:
        return None
