if (!replacement.isEmpty()) {
int len = this.steps.size();
for (int i = 0; i < len; i++) {
FormatStep step = this.steps.get(i);
ChronoElement<?> element = step.getProcessor().getElement();
<BUG>if (this.chronology.isRegistered(element)) {</BUG>
if (replacement.containsKey(element)) {
ChronoElement<?> newElement = replacement.get(element);
this.steps.set(i, step.updateElement(newElement));
<BUG>}</BUG>
}

if (!replacement.isEmpty()) {
int len = this.steps.size();
for (int i = 0; i < len; i++) {
FormatStep step = this.steps.get(i);
ChronoElement<?> element = step.getProcessor().getElement();
if (replacement.containsKey(element)) {
ChronoElement<?> newElement = replacement.get(element);
this.steps.set(i, step.updateElement(newElement));
