+ private HubManager gethm() {
+ if(hm == null) {
+ hm = new HubManager(this);
+ }
+ return(hm);
+ }
+
+ public synchronized void addHubListener(HubListener hl, boolean addexisting) {
+ gethm().addls(hl, addexisting);
+ }
+
+ public synchronized void removeHubListener(HubListener hl) {
+ gethm().rmls(hl);
+ }
+
+ public synchronized Collection<Hub> getHubs() throws InterruptedException {
+ return(gethm().gethubs());
+ }
+