+ }
+ else if(contentType instanceof ParentVariable) {
+ ParentVariable type = (ParentVariable)contentType;
+ try {
+ return (T) type.processor.sync(new ResourceRead2<Variable>(runtime, element) {
+ @Override
+ public Variable perform(ReadGraph graph) throws DatabaseException {
+
+ DiagramResource DIA = DiagramResource.getInstance(graph);
+ ModelingResources MOD = ModelingResources.getInstance(graph);
+ Layer0 L0 = Layer0.getInstance(graph);
+
+ String uri = graph.getPossibleRelatedValue(resource, DIA.RuntimeDiagram_HasVariable);
+ if (uri == null)
+ return null;
+
+ Variable var = Variables.getPossibleVariable(graph, uri);
+ if (var == null)
+ return null;
+
+ return var;
+ }
+ });
+ } catch (DatabaseException e) {
+ Logger.defaultLogError(e);
+ }