def METHOD_NAME(element):
    new_entry = Entry()
    for k, v in element.attrib.items():
        new_entry.__setattr__(k, v)
    for subelement in element:
        if subelement.tag == "graphics":
            _parse_graphics(subelement, new_entry)
        elif subelement.tag == "component":
            _parse_component(subelement, new_entry)
    self.pathway.add_entry(new_entry)