*
* @param state
* @throws RepositoryException
*/
private static void updateId(ItemState state) throws RepositoryException {
HierarchyEntry he = state.getHierarchyEntry();
while (he.getStatus() != Status.INVALIDATED) {
he = he.getParent();
if (he == null) {
// root reached without intermediate invalidated entry
return;
}
}
// he is INVALIDATED -> force reloading in order to be aware of id changes
he.getItemState();
}