if(cmd.hasOption("template")) {
template = new File(cmd.getOptionValue("template"));
}
GenericSesameBackend backend;
if(cmd.hasOption("store")) {
backend = new LDPersistentBackend(new File(cmd.getOptionValue("store")));
} else {
backend = new LDMemoryBackend();
}
Resource context = null;
if(cmd.hasOption("context")) {
context = backend.getRepository().getValueFactory().createURI(cmd.getOptionValue("context"));
}
BufferedWriter out = null;
if(cmd.hasOption("out")) {
File of = new File(cmd.getOptionValue("out"));