private LineString undo(LineString lineString) {
   RemoveCoordinateOperation op = new RemoveCoordinateOperation(lineString.getNumPoints());
   return (LineString) op.execute(lineString);
 }
 private LineString execute(LineString lineString) {
   InsertCoordinateOperation op =
       new InsertCoordinateOperation(lineString.getNumPoints(), coordinate);
   return (LineString) op.execute(lineString);
 }