if (!currentObject.getClass().isArray())
{
// only non-arrays are treated as proper objects.
target.saveObjectUnprotected(targetCw, currentObject);
copyExternalProtection(targetCw, currentObject);
targetCw.commit();
}
// get the next id
currentId = getSmallestIdLargerThan(currentId);
}
}