return new ResponseEntity<>(response, HttpStatus.NOT_FOUND);
}
MetaGraphTx tx = metaGraphService.newTransaction();
GraphMetadata graphMetadata = tx.getGraph(graphId);
if (graphMetadata == null) {
response.put("status", "error");
response.put("msg", "missing graph metadata '" + graphId + "'");
tx.rollback();
return new ResponseEntity<>(response, HttpStatus.NOT_FOUND);
}
ProjectMetadata projectMetadata = graphMetadata.getProject();
if (projectMetadata == null) {
response.put("status", "error");
response.put("msg", "missing project metadata for graph '" + graphId + "'");
tx.rollback();
return new ResponseEntity<>(response, HttpStatus.NOT_FOUND);