public Ref getLeaf() {Ref dst = getTarget();while (dst.isSymbolic())dst = dst.getTarget();return dst;}
public virtual Ref GetLeaf(){Ref dst = GetTarget();while (dst.IsSymbolic()){dst = dst.GetTarget();}return dst;}