def METHOD_NAME(self, element):
    name = element['name']
    db_refs = {}
    if not element['completed']:
        return None
    mapped_ns, mapped_id = \
        process_db_refs(element['association']['namespace'],
                        element['association']['id'])
    if mapped_ns and mapped_id:
        db_refs[mapped_ns] = mapped_id
    for ref in element['association'].get('dbXrefs', []):
        mapped_ns, mapped_id = process_db_refs(ref['db'], ref['id'])
        if mapped_ns and mapped_id:
            db_refs[mapped_ns] = mapped_id
    return Agent(name, db_refs=db_refs)