class SimpleOntologyManager extends AbstractOntologyManager {

    @Override
    public Ontology applyChanges(Ontology ontology, Difference difference) {
        if (ontology instanceof SimpleOntology) {
            SimpleOntology simpleOntology = (SimpleOntology) ontology;
            simpleOntology.setDifference(difference);
            return simpleOntology;
        } else {
            Model changedOntologyModel = utilsService.applyDifference(ontology.asModel(modelFactory), difference);
            return createOntology(changedOntologyModel);
        }
    }

    public  SimpleOntologyManager();

}