public static void registerBadConnection(ITarget widget, IKey key,
AbstractCometeBox<? extends ITarget> box) {
boolean enabled = true;
if (widget instanceof IComponent){
IComponent iComponent = (IComponent) widget;
enabled = iComponent.isEnabled();
}
ConnectionParameters params = new ConnectionParameters(box, widget, key,enabled);
badConnectionParameters.add(params);
// start thread if needed