response.addHeader("Content-Disposition", "attachment; filename=" + workspace.getDisplayTitle() + ".lumifyWorkspace");
OutputStream out = response.getOutputStream();
try {
GraphBackup graphBackup = new GraphBackup();
graphBackup.saveVertex(workspaceVertex, out);
graphBackup.save(vertices, edges, out);
} finally {
out.close();
}
}