SOC-4284: Added a local cache in ActivityRefIterator.orderRefs() to avoid multiple JCR accesses for the same ActivityRef