in savePOC, in case of duplicate sample name error, return the editBeam