}
private void collectSelectedAndInvalidItems(List<IntegrationEntity> items, List<IntegrationEntity> invalid) {
Enumeration<KongaTreeNode> en = tree.getModel().getRoot().breadthFirstEnumeration();
while (en.hasMoreElements()) {
CheckBoxEntityNode node = (CheckBoxEntityNode) en.nextElement();
if (node.isSelected()) {
IntegrationEntity entity = (IntegrationEntity) node.getUserObject();
switch (entity.getEntityType()) {
case Folder: /* fall-through */
case RootFolder: /* fall-through */
case Project: /* fall-through */
// Do not add folders or the project itself to the list of invalid items,