// it's ugly that creating an instance does registration at the same time
// we could check here that all broadcasters have host properly set
// probably all should have host set. We can not just set it ourselves.
// It must be properly set when whoever creates it registers it originally.
try {
EventBroadcaster ebc = new EventBroadcaster(name, ec);
} catch (InvalidFormatException ex) {
log.error("There's EventCentral in the system that does not enforce proper names: " + ex);
}
}
Set reglset = ec.getListeners().keySet();