while (running) {
try {
feed = connector.changesFeed(cmd);
while (feed.isAlive() && running) {
DocumentChange change = feed.next();
System.out.println("Got a change!");
String docId = change.getId();
System.out.println(docId);
ObjectNode doc = loadRecordingDoc(docId);
if (doc != null) {
System.out.println("has doc");
processRecordingDoc(doc);