ArchiveFileSystem archiveFileSystem = ArchiveFileSystemFactory
.getConfiguredArchiveFileSystem();
ArchiveConfiguration archiveConfiguration = ArchiveConfiguration
.getSharedInstance();
PathResolver pathResolver = new PathResolver(archiveConfiguration);
ArchivedIndexesLister indexesLister = new ArchivedIndexesLister(
pathResolver, archiveFileSystem);
JSONObject json = JsonUtils.writeKeyValueAsJson(
JsonObjectNames.INDEX_COLLECTION, indexesLister.listIndexes());
List<JSONObject> jsons = RequestOnSearchPeers.createGet(
ENDPOINT_LIST_INDEXES, null, null, null).execute().jsons;
jsons.add(json);
JSONObject merge = JsonUtils.mergeJsonsWithKeys(jsons,