private String createRelationship(String nodeFrom, String nodeTo,
String type) {
try {
String relationshipUrl = nodeFrom + "/relationships";
PostMethod method = new PostMethod(relationshipUrl);
method.addRequestHeader("Accept", this.contentType);
method.addRequestHeader("Content-Type", this.contentType);
String body = "{ \"to\": \"" + nodeTo + "\",\"type\":\"" + type
+ "\"}";
method.setRequestEntity(new StringRequestEntity(body,
this.contentType, "UTF-8"));