private JournalManager constructJournalManager(URI editsUri)
throws IOException {
if (editsUri.getScheme().equals(NNStorage.LOCAL_URI_SCHEME)) {
StorageDirectory sd = new NNStorage(new StorageInfo()).new StorageDirectory(
new File(editsUri.getPath()));
return new FileJournalManagerReadOnly(sd);
} else if (editsUri.getScheme().equals(QuorumJournalManager.QJM_URI_SCHEME)) {
return new QuorumJournalManager(conf, editsUri,
new NamespaceInfo(new StorageInfo()), null, false);
} else {
throwIOException("Other journals not supported yet.", null);