return (T)element;
}
else if (contentType instanceof AnyVariable) {
+ AnyVariable type = (AnyVariable) contentType;
try {
- return (T) Simantics.getSession().syncRequest(new ResourceRead<Variable>(element) {
+ return (T) type.processor.syncRequest(new ResourceRead<Variable>(element) {
public Variable perform(ReadGraph graph) throws DatabaseException {
return ElementSelector.getVariableForElement(graph, resource);
}