code: private static boolean isLocalJournal(JournalManager jm) {
      if (jm == null || (!(jm instanceof FileJournalManager))) {
        return false;
      }
      return NNStorage.isPreferred(StorageLocationType.LOCAL,
          ((FileJournalManager) jm).getStorageDirectory());
    }
docs: Check if the given journal is local.