Node.replace implemented w.r.t. external interface, plus additional keyword argument related methods.
Adding @Override.
Reusing function for replace() and keyword parameters.