}\r
}\r
\r
+ @Override\r
+ public <T> T getValue2(final Resource subject, final Object context) throws DatabaseException {\r
+ try {\r
+ return (T) session.syncRequest(new Read<T>() {\r
+ @Override\r
+ public T perform(ReadGraph graph) throws DatabaseException {\r
+ return graph.getValue2(subject, context);\r
+ }\r
+ });\r
+ } catch (DatabaseException e) {\r
+ throw new ServiceException(e);\r
+ }\r
+ }\r
+\r
+ @Override\r
+ public <T> T getPossibleValue2(final Resource subject, final Object context) throws DatabaseException {\r
+ try {\r
+ return (T) session.syncRequest(new Read<T>() {\r
+ @Override\r
+ public T perform(ReadGraph graph) throws DatabaseException {\r
+ return graph.getPossibleValue2(subject, context);\r
+ }\r
+ });\r
+ } catch (DatabaseException e) {\r
+ throw new ServiceException(e);\r
+ }\r
+ }\r
+\r
+ @Override\r
+ public <T> T getValue2(final Resource subject, final Object context, final Binding binding) throws DatabaseException {\r
+ try {\r
+ return (T) session.syncRequest(new Read<T>() {\r
+ @Override\r
+ public T perform(ReadGraph graph) throws DatabaseException {\r
+ return graph.getValue2(subject, context, binding);\r
+ }\r
+ });\r
+ } catch (DatabaseException e) {\r
+ throw new ServiceException(e);\r
+ }\r
+ }\r
+\r
+ @Override\r
+ public <T> T getPossibleValue2(final Resource subject, final Object context, final Binding binding) throws DatabaseException {\r
+ try {\r
+ return (T) session.syncRequest(new Read<T>() {\r
+ @Override\r
+ public T perform(ReadGraph graph) throws DatabaseException {\r
+ return graph.getPossibleValue2(subject, context, binding);\r
+ }\r
+ });\r
+ } catch (DatabaseException e) {\r
+ throw new ServiceException(e);\r
+ }\r
+ }\r
+\r
}\r
return graph.isImmutable(resource);\r
}\r
\r
+ @Override\r
+ public <T> T getValue2(Resource subject, Object context) throws DatabaseException {\r
+ return graph.getValue2(subject, context);\r
+ }\r
+\r
+ @Override\r
+ public <T> T getPossibleValue2(Resource subject, Object context) throws DatabaseException {\r
+ return graph.getPossibleValue2(subject, context);\r
+ }\r
+\r
+ @Override\r
+ public <T> T getValue2(Resource subject, Object context, Binding binding) throws DatabaseException {\r
+ return graph.getValue2(subject, context, binding);\r
+ }\r
+\r
+ @Override\r
+ public <T> T getPossibleValue2(Resource subject, Object context, Binding binding) throws DatabaseException {\r
+ return graph.getPossibleValue2(subject, context, binding);\r
+ }\r
+\r
}\r