- ModelTransferableGraphSource source = graph.syncRequest(new ModelTransferableGraphSourceRequest(configuration));
- return TransferableGraphs.create(graph, source);
-
+ try (ModelTransferableGraphSource source = graph.syncRequest(new ModelTransferableGraphSourceRequest(configuration))) {
+ return TransferableGraphs.create(graph, source);
+ } catch (IOException e) {
+ throw new DatabaseException(e);
+ }