code: private void setC4Document(C4Document c4doc) {
          synchronized (lock) {
              replaceC4Document(c4doc);
              data = null;
              if (c4doc != null && !c4doc.deleted()) { data = c4doc.getSelectedBody2(); }
              updateDictionary();
          }
      }
docs: Sets c4doc and updates my root dictionary