// Then remove all of the instances for the specified concept from the
// other list
protected void deleteAllInstancesForConcept(ActionContext pAc, CeConcept pConcept) {
		// Note that instances are not referenced by any other model entity, so
		// they can be safely deleted here
		// without leaving any references in place.
		// If there are textual references to the instance (i.e. in a property
		// that refers to it by name) then
		// these references must be manually cleaned up separately by the code
		// that calls this method.
		// First remove the instances individually from the list of all
		// instances
		ArrayList<CeInstance> allInsts = getAllInstancesForConcept(pConcept);
		for (CeInstance thisInst : allInsts) {
			deleteInstanceNoRefs(thisInst);
		}
		// Then remove all of the instances for the specified concept from the
		// other list
		this.instancesByConcept.remove(pConcept);
		// Then remove the unused sentences and sources that may be left as a
		// result
		pAc.getModelBuilder().removeUnusedSentencesAndSources(pAc);
	}
deleteInstanceNoRefs(thisInst);
}
// Then remove all of the instances for the specified concept from the
// other list
this.instancesByConcept.remove(pConcept);
// Then remove the unused sentences and sources that may be left as a
// If there are textual references to the instance (i.e. in a property
// that refers to it by name) then
// these references must be manually cleaned up separately by the code
// that calls this method.
// First remove the instances individually from the list of all
// instances
ArrayList<CeInstance> allInsts = getAllInstancesForConcept(pConcept);
for (CeInstance thisInst : allInsts) {
deleteInstanceNoRefs(thisInst);
}
// Then remove all of the instances for the specified concept from the
// other list
this.instancesByConcept.remove(pConcept);
// Then remove the unused sentences and sources that may be left as a
// result
pAc.getModelBuilder().removeUnusedSentencesAndSources(pAc);
}
protected void deleteAllInstancesForConcept(ActionContext pAc, CeConcept pConcept) {
// Note that instances are not referenced by any other model entity, so
// they can be safely deleted here
// without leaving any references in place.
// If there are textual references to the instance (i.e. in a property
// that refers to it by name) then
// these references must be manually cleaned up separately by the code
// that calls this method.
// First remove the instances individually from the list of all
// instances
ArrayList<CeInstance> allInsts = getAllInstancesForConcept(pConcept);
for (CeInstance thisInst : allInsts) {
deleteInstanceNoRefs(thisInst);
}
// Then remove all of the instances for the specified concept from the
// other list
this.instancesByConcept.remove(pConcept);
// Then remove the unused sentences and sources that may be left as a
// result
pAc.getModelBuilder().removeUnusedSentencesAndSources(pAc);
}