final Pool pool = (Pool) boObject;
Bpmn2MemoryModel model = ModelHandler.getModel(EcoreUtil.getURI(getDiagram()));
Process process = model.getBpmnModel().getProcess(pool.getId());
model.getBpmnModel().getProcesses().remove(process);
model.getBpmnModel().getPools().remove(pool);
IRemoveContext rc = new RemoveContext(pictogramElement);
IFeatureProvider featureProvider = getFeatureProvider();
IRemoveFeature removeFeature = featureProvider.getRemoveFeature(rc);
if (removeFeature != null) {
removeFeature.remove(rc);
}