RepositoryItemMetadata item, GeneratedModifications mods)
{
// If this is an addition, it can't be the child of an earlier removal.
// So, drain any remaining preapproved removals
drainPreapprovedRemovals(mods);
Type type = item.isDirectory() ? Type.MKDIR_TO_CLUSTER : Type.PUSH_TO_CLUSTER;
mods.addModification(new ContentModification(type, rootName, item));
if (log.isTraceEnabled())
{
log.trace("created " + type + " modification for " + item.getRelativePath());