List<ConnectionParameters> toRemove = new ArrayList<ConnectionParameters>();
for (ConnectionParameters params : badConnectionParameters) {
@SuppressWarnings("unchecked")
AbstractCometeBox<ITarget> box = (AbstractCometeBox<ITarget>) params.getBox();
ITarget widget = params.getWidget();
IKey key = params.getKey();
if (interruptedReconnection) {
break;
}
if (box.connectWidget(widget, key, false, params.isPlugins())) {
toRemove.add(params);