* @throws rocks.xmpp.core.session.NoResponseException If the entity did not respond.
* @see <a href="http://xmpp.org/extensions/xep-0045.html#register">7.10 Registering with a Room</a>
* @see RoomRegistrationForm
*/
public DataForm getRegistrationForm() throws XmppException {
IQ iq = new IQ(roomJid, IQ.Type.GET, new Registration());
IQ result = xmppSession.query(iq);
Registration registration = result.getExtension(Registration.class);
if (registration != null) {
return registration.getRegistrationForm();
}
return null;
}