protected SetEntityCrudKitSettingsResult execute(SetEntityCrudKitSettingsAction action, OWLAPIProject project, ExecutionContext executionContext) {
project.setEntityCrudKitSettings(action.getToSettings());
if(action.getPrefixUpdateStrategy() == IRIPrefixUpdateStrategy.FIND_AND_REPLACE) {
String fromPrefix = action.getFromSettings().getPrefixSettings().getIRIPrefix();
String toPrefix = action.getToSettings().getPrefixSettings().getIRIPrefix();
FindAndReplaceIRIPrefixChangeGenerator changeGenerator = new FindAndReplaceIRIPrefixChangeGenerator(fromPrefix, toPrefix);
project.applyChanges(executionContext.getUserId(), changeGenerator, new FixedMessageChangeDescriptionGenerator<Void>("Replaced IRI prefix <" + fromPrefix + "> with <" + toPrefix + ">"));
}
return new SetEntityCrudKitSettingsResult();
}