If a homes electrical system is grounded by a wire attached to the metal water supply pipes, don’t break the ground connection by installing plastic replacement plumbing.  Attach ground clamps to the metal pipes on each side of the plastic repair, and connect the clamps with a copper jumper wire.