@DeserializeWith(RelationshipCreationDeserializationStrategy.class)
@SerializeWith(RelationshipSerializationStrategy.class)
public void createRelationship(Invocation invocation, Output result)
{
GraphDatabaseService db = invocation.getDB();
RelationshipCreationDescription relToCreate = invocation.getContent();
Node from = db.getNodeById(getNodeId(invocation));
Node to = db.getNodeById(relToCreate.getEndNodeId());
Relationship rel = from.createRelationshipTo(to, relToCreate.getType());
setProperties(rel, relToCreate);
result.createdAt(url.reverse(rel), rel);
}