public void setProperty(final String key, final Object value) {
if (key.equals(SailTokens.NAMED_GRAPH)) {
try {
URI namedGraph = new URIImpl(this.graph.expandPrefix(value.toString()));
SailHelper.removeStatement(this.rawEdge, this.graph.getSailConnection().get());
this.rawEdge = new ContextStatementImpl(this.rawEdge.getSubject(), this.rawEdge.getPredicate(), this.rawEdge.getObject(), namedGraph);
SailHelper.addStatement(this.rawEdge, this.graph.getSailConnection().get());
} catch (Exception e) {
throw new RuntimeException(e.getMessage(), e);
}
} else {