public void becomeClient() { ClientGmsImpl tmp = (ClientGmsImpl) impls.get(CLIENT); if (tmp == null) { tmp = new ClientGmsImpl(this); impls.put(CLIENT, tmp); } try { tmp.init(); } catch (Exception e) { log.error("exception switching to client role", e); } setImpl(tmp); }