private ReferenceDelta computeReferenceDeltas( ReferenceWrapper referenceWrapper, ItemPath containerPath) { PrismReferenceDefinition propertyDef = referenceWrapper.getItem().getDefinition(); ReferenceDelta pDelta = new ReferenceDelta( containerPath, propertyDef.getName(), propertyDef, propertyDef.getPrismContext()); addItemDelta( referenceWrapper, pDelta, propertyDef, containerPath.subPath(propertyDef.getName())); return pDelta; }
private ItemDelta computePropertyDeltas(PropertyWrapper propertyWrapper, ItemPath containerPath) { ItemDefinition itemDef = propertyWrapper.getItem().getDefinition(); ItemDelta pDelta = itemDef.createEmptyDelta(containerPath.subPath(itemDef.getName())); addItemDelta(propertyWrapper, pDelta, itemDef, containerPath); return pDelta; }