@Override
public Variable buildChild(ReadGraph graph, Variable parent, VariableNode<Node> node, Resource child) throws DatabaseException {
boolean isImmutable = graph.isImmutable(child);
- Resource possibleIndexRoot = graph.syncRequest(new PossibleIndexRoot(child));
- if(possibleIndexRoot != null) {
-// String puri = graph.getURI(possibleIndexRoot);
-// if(puri.contains("ModelBroker"))
-// isImmutable = true;
-// if(NameUtils.getSafeName(graph, child).equals("Project"))
-// isImmutable = false;
- }
if(isImmutable) {
-// System.err.println("ImmutableComponentVariableContentRequest " + parent.getURI(graph) + " " + NameUtils.getSafeName(graph, child));
- ImmutableComponentVariableContent content = graph.syncRequest(new ImmutableComponentVariableContentRequest(child), TransientCacheListener.instance());
- return new ImmutableComponentVariable(parent, content);
+// ImmutableComponentVariableContent content = graph.syncRequest(new ImmutableComponentVariableContentRequest(child), TransientCacheListener.instance());
+// return new ImmutableComponentVariable(parent, content);
+ return new StandardGraphChildVariable(parent, node, child);
} else {
return new StandardGraphChildVariable(parent, node, child);
}