public Peer clone(){
  Peer clone=new Peer(network.clone(),address);
  return clone;
}

public Peer clone ( ) { Peer clone = new Peer ( network . clone ( ) , address ) ; return clone ; }
create a deep copy of the peer which references the same remote peer but whose peernetwork is a distinct object .
