final ArrayList<UndoEntry> undos = new ArrayList<UndoEntry>();
for (int i = 0; i < selectedElements.length; i++)
{
final Object element = selectedElements[i];
final UndoEntry undoEntry = InsertationUtil.delete(activeContext, element);
if (undoEntry != null)
{
undos.add(undoEntry);
}
}