if (userWantsUpdate == null || userWantsUpdate == true) {
// finally create the endpoint
CamelDebugUtils.createAndRegisterEndpointBreakpoint(resource, _ep, projectName, fileName);
}
} catch (CoreException e) {
final IDiagramContainer container = getDiagramBehavior().getDiagramContainer();
final Shell shell;
if (container instanceof RiderDesignEditor) {
shell = ((RiderDesignEditor) container).getEditorSite().getShell();
} else {
shell = Display.getCurrent().getActiveShell();