+ "\"}";
method.setRequestEntity(new StringRequestEntity(body,
this.contentType, "UTF-8"));
this.httpClient.executeMethod(method);
Gson gson = new Gson();
ResponseNode node = gson.fromJson(method.getResponseBodyAsString(),
ResponseNode.class);
return node.getSelf();
} catch (Exception e) {
throw new RuntimeException(
"There was an error creating relationship." + nodeFrom
+ " " + nodeTo, e);
}