EmbeddedGraphStore graphStore = (EmbeddedGraphStore) store;
GraphDatabaseAPI databaseService = graphStore.getDatabaseService();
File file = BaseProjectResolver.getOutputFile(baseProject, exportFile, EXPORT_FILE);
getLog().info("Exporting database to '" + file.getAbsolutePath() + "'");
store.beginTransaction();
SubGraph graph = DatabaseSubGraph.from(databaseService);
try {
new SubGraphExporter(graph).export(new PrintWriter(new OutputStreamWriter(new FileOutputStream(file), "UTF-8")));
} catch (IOException e) {
throw new MojoExecutionException("Cannot export database.", e);
} finally {