String accountName = wizardCreateAccount.txtAccountName.getText();
accountList = GOIMPlugin.getAccountList();
if(accountList.getByName(accountName) != null) {
throw new RuntimeException("Account name already exists. Choose a different one.");
}
final GOIMAccount account = new GOIMAccount();
account.name = accountName;
account.jid = wizardConfigureJabberAccount.txtJabberId.getText();
if(wizardConfigureJabberAccount.useCustomHost.getSelection()) {
account.customHost = wizardConfigureJabberAccount.txtCustomHost.getText();
account.customPort = Integer.parseInt(wizardConfigureJabberAccount.txtCustomPort.getText());