@classmethod
def __inSubMenu(cls, child, subMenu):
    """
        Return True if child belongs to subMenu
        """
    for ch in subMenu:
        if child['tag'] == cls.TAG_PROTOCOL:
            if not ch.value.empty() and ch.value == child['value']:
                return ch
        elif ch.text == child['text']:
            return ch
    return None
