public void becomeCoordinator() { CoordGmsImpl tmp = (CoordGmsImpl) impls.get(COORD); if (tmp == null) { tmp = new CoordGmsImpl(this); impls.put(COORD, tmp); } try { tmp.init(); } catch (Exception e) { log.error("exception switching to coordinator role", e); } setImpl(tmp); }