Set<String> modifiedTypes =
registration.getModifiedTypes(beforeTypes);
if (!modifiedTypes.isEmpty()) {
// Some node types were modified, so scan the repository
// to make sure that the modified definitions still apply.
Editor editor = new VisibleEditor(new TypeEditor(
strict, modifiedTypes, afterTypes,
primary, mixins, builder));
CommitFailedException exception =
EditorDiff.process(editor, MISSING_NODE, after);
if (exception != null) {
throw exception;
}
}
}
return new VisibleEditor(new TypeEditor(
strict, null, afterTypes, primary, mixins, builder));
}