if (!current.equals(orig)) {
Set<MaximumContextualMolecule> originalContextualMolecules = cMolecules;
cMolecules = new HashSet<MaximumContextualMolecule>();
for (MaximumContextualMolecule molecule : originalContextualMolecules) {
try {
SimpleContextualMolecule replacement = new GraphUtil<SimpleContextualMolecule>()
.replaceNode(
molecule,
orig,
current,
new SimpleContextualMolecule());
replacement.markFinalized();
cMolecules.add(replacement);
} catch (SourceNodeNotFoundException e) {
cMolecules.add(molecule);
}
}