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