public Variable getVariable(ReadGraph graph, Variable context, String name) throws DatabaseException {
Variable parent = context.getParent(graph);
Resource container = parent.getPossibleRepresents(graph);
+ if(container == null)
+ return null;
Map<String,Resource> methods = graph.syncRequest(new UnescapedMethodMapOfResource(container));
Resource predicate = methods.get(name);
if(predicate != null) {