/** * Returns true if the registration informations indicates that you are already * registered with this gateway * @return true if already registered * @throws XMPPException */ public boolean isRegistered() throws XMPPException{ return getRegisterInfo().isRegistered(); }
if(getRegisterInfo().isRegistered()) { throw new IllegalStateException("You are already registered with this gateway");