Activity activity = BusinessObjectUtil.getFirstElementOfType(context.getPictogramElement(),
Activity.class);
new AbstractBoundaryEventOperation() {
@Override
protected void doWorkInternal(ContainerShape container) {
IDeleteContext delete = new DeleteContext(container);
getFeatureProvider().getDeleteFeature(delete).delete(delete);
}
}.doWork(activity, getDiagram());
super.delete(context);
}