public void initialise(Engine e) {
   this.changes = e.getChanges();
   this.diffMap = changes.getRawDiffMap();
   this.mapper = CodeToEntityMapper.get(e);
   OWLDataFactory factory = diffMap.getOWLDataFactory();
   String splitFromPropertyName = (String) e.getParameters().get(SPLIT_FROM_ANNOTATION_PROPERTY);
   if (splitFromPropertyName == null) {
     disabled = true;
     return;
   }
   splitFromProperty = factory.getOWLAnnotationProperty(IRI.create(splitFromPropertyName));
 }
 private OWLClass getClassThatWasSplit(String code) {
   if (code == null) {
     return null;
   }
   Collection<OWLEntity> possiblySplitEntities = mapper.getTargetEntities(code);
   OWLClass classThatWasSplit = null;
   for (OWLEntity possiblySplityEntity : possiblySplitEntities) {
     if (possiblySplityEntity instanceof OWLClass) {
       if (classThatWasSplit != null) {
         return null;
       } else {
         classThatWasSplit = (OWLClass) possiblySplityEntity;
         EntityBasedDiff classThatWasSplitDiff = changes.getTargetDiffMap().get(classThatWasSplit);
         if (classThatWasSplitDiff != null) {
           classThatWasSplit =
               (OWLClass)
                   classThatWasSplitDiff
                       .getSourceEntity(); // if it was created we do really want null
         }
       }
     }
   }
   return classThatWasSplit;
 }