221222223224225226227228229230231
if (ptg instanceof PtgRefN){ ptg = ((PtgRefN)ptg).convertToPtgRef(f); }else if (ptg instanceof PtgAreaN){ ptg = ((PtgAreaN)ptg).convertToPtgArea(f); } else { ptg = (Ptg) ptg.clone(); ptg.setParentRec( f ); } out.add( ptg ); }