find_sdca_entity_by_id
managed[i] = find_sdca_entity_by_id(function, managed_list[i]);
managed = find_sdca_entity_by_id(function, affected->id);