@SCLValue(type = "ReadGraph -> Resource -> Variable -> Variable")\r
public static Variable state(ReadGraph graph, Resource converter, Variable context) throws DatabaseException {\r
Variable session = graph.syncRequest(new ProxySessionRequest(context));\r
+ if (session == null)\r
+ throw new DatabaseException("No state for " + context.getURI(graph));\r
return session.getPossibleChild(graph, "__scl__");\r
}\r
\r