@SuppressWarnings("unchecked") @Override public void actionPerform(Component component) { // if standard behaviour if (!hasSubscriptions(ActionPerformedEvent.class)) { if (!(target.getItems() instanceof ContainerDataUnit)) { throw new IllegalStateException("ExcludeAction target items is null or does not implement ContainerDataUnit"); } ContainerDataUnit items = (ContainerDataUnit) target.getItems(); CollectionContainer container = items.getContainer(); if (container == null) { throw new IllegalStateException("ExcludeAction target is not bound to CollectionContainer"); } removeOperation.excludeSelected(target); } else { super.actionPerform(component); } } }