throws DuplicatePatternException {
if (!this.parentMap.containsPattern(newPattern)) {
this.parentMap.put(newPattern, parentStep);
} else {
throw new DuplicatePatternException(newPattern, this.parentMap.getValueForPattern(newPattern), parentStep);
}
}