final String nickName = mainPage.getNicknameText();
final String containerType = mainPage.getContainerType();
final boolean autoLogin = mainPage.getAutoLoginFlag();
try {
client = new URIClientConnectAction(containerType, groupName, nickName, "", resource, autoLogin); //$NON-NLS-1$
client.run(null);
} catch (final Exception e) {
final String id = ClientPlugin.getDefault().getBundle().getSymbolicName();
throw new CoreException(new Status(Status.ERROR, id, IStatus.ERROR, NLS.bind(Messages.JoinGroupWizard_COULD_NOT_CONNECT, groupName), e));
}
}