+ Resource activeProfile = graph.getPossibleObject(resource, DIA.RuntimeDiagram_HasRuntimeProfile);
+ if (activeProfile == null) {
+
+ List<NamedResource> available = graph.syncRequest(new AvailableProfiles(resource));
+ if(available.size() != 1) return result;
+
+ activeProfile = available.iterator().next().getResource();
+
+ }
+