def METHOD_NAME(xml, name, newname):
    try:
        pd = asearch.find_path(xml, ["state","field evaluators",name])
    except aerrors.MissingXMLError:
        pass
    else:
        pd.setName(newname)