}
public void initFromUrl(Neo4jService service, URL url, final String query) {
if (!service.doesOwnDatabase()) return;
final String urlString = url.toString().replaceAll("/cypher/?$", "");
final RestAPI restApi = new RestAPIFacade(urlString);
final QueryResult<Map<String,Object>> cypherResult = new RestCypherQueryEngine(restApi).query(query, null);
final SubGraph graph = new SubGraph();
for (Map<String, Object> row : cypherResult) {
for (Object value : row.values()) {
addResultValue(graph, value);