dialog.setBlockOnOpen(true);
int code = dialog.open();
if(code != InputDialog.OK) return;
RosterGroup group = activeAccount.xmpp.getRoster().createGroup(dialog.getValue());
try {
group.addEntry(selectedEntry);
} catch (XMPPException e) {
e.printStackTrace();
throw new RuntimeException(e);
}
}