@Override
public Object substituteObject(final Object originalObject) {
final SubstitutedBob substitutedBob = (SubstitutedBob) originalObject;
final int identifier = substitutedBob.getIdentifier();
originalMap.put(identifier, substitutedBob);
SubstitutionBob substitutionBob = substitutionMap.get(identifier);
if (substitutionBob == null) {
substitutionBob = new SubstitutionBob(identifier);
substitutionMap.put(identifier, substitutionBob);
}
substitutionBob.setObject(substitutedBob.getObject1());
return substitutionBob;
}