HashMap map = new HashMap();
// 1.0 and earlier will fail
try {
CouchDbConnector replicator = instance.createConnector("_replicator", false);
ViewQuery query = new ViewQuery().allDocs().includeDocs(true);
ViewResult result = replicator.queryView(query);
for (Row row : result) {
String replicationID = row.getDocAsNode().get("_replication_id").getTextValue();
map.put(replicationID.substring(0,4), replicationID);
}
} catch (Exception e) {}