NodeIterator groupsIter = ((ExtendedNode)session.getItem(groupsStorageOld)).getNodesLazily();
while (groupsIter.hasNext())
{
Node currentGroup = groupsIter.nextNode();
currentGroup.remove();
session.save();
}
NodeIterator membershipTypesIter =
((ExtendedNode)session.getItem(membershipTypesStorageOld)).getNodesLazily();
while (membershipTypesIter.hasNext())