public static <T> PropertyDelta<T> findPropertyDelta( Collection<? extends ItemDelta> modifications, ItemPath propertyPath) { for (ItemDelta delta : modifications) { if (delta instanceof PropertyDelta && delta.getPath().equivalent(propertyPath)) { return (PropertyDelta) delta; } } return null; }