File dir = conf.getFile(TwitLogic.NEO4J_DIRECTORY);
LOGGER.info("instantiating GraphSail-on-Neo4j in directory: " + dir);
Neo4jGraph graph = new Neo4jGraph(dir.getAbsolutePath());
//graph.setMaxBufferSize(1);
Sail sail = new GraphSail(graph);
sail.initialize();
File dump = conf.getFile("dump", null);
if (null != dump) {
LOGGER.info("loading from dump file: " + dump);
try {
SailConnection sc = sail.getConnection();
try {
sc.begin();
RDFParser parser = Rio.createParser(RDFFormat.NQUADS);
parser.setRDFHandler(new StatementAdder(sc));
InputStream is = new FileInputStream(dump);