editingDomain = diagramBehavior.getEditingDomain();
}
}
if (editingDomain == null) {
ResourceSet resourceSet = null;
Resource eResource = diagram.eResource();
if (eResource != null) {
resourceSet = eResource.getResourceSet();
}
if (resourceSet == null) {
resourceSet = new ResourceSetImpl();