// By default, use an anonymous login
ServerConnection connection = ServerConnection.getInstance();
connection.setLoginInfo(new ClientLoginInfo("Anonymous", null));
try
{
connection.connect(true);
}
catch (OpenBPException e)
{
// Show dialog box if the user has not chose to skip it before
if (! SettingUtil.getBooleanSetting("openbp.cockpit.connectionwarning.hide", false))