Element () { Element element = new Element("state"); synchronized (myDataLock) { boolean areChangeListsEnabled = myWorker.areChangeListsEnabled(); List<? extends LocalChangeList> changesToSave = areChangeListsEnabled ? myWorker.getChangeLists() : myDisabledWorkerState; ChangeListManagerSerialization.writeExternal(element, changesToSave, areChangeListsEnabled); } myConflictTracker.saveState(element); return element; }