function ReplaceShapeHandler(modeling, rules) {
  this._modeling = modeling;
  this._rules = rules;
}
Replace shape by adding new shape and removing old shape. Incoming and outgoing connections will
be kept if possible.

@class
@constructor

@param {Modeling} modeling
@param {Rules} rules