AtomicReference: Java6 compatibility + solved issue for moving partition-state to another machine