public void run() {
try{
Thread.sleep(delay);
URL url = new URL(destinationUrl+"?version="+URLEncoder.encode(GuiClient.getVersionType(),"UTF-8")+"&remoteversion="+URLEncoder.encode(GuiClient.getVersion(),"UTF-8")+"&branch="+URLEncoder.encode(GuiClient.getBranch(),"UTF-8"));
if(updateManager == null){
updateManager = new UpdateManager(url);
}
updateManager.checkForNewVersion(forceRecheck);
if(updateManager.isNewVersionAvailable()){
getLogger().info(GettextResource.gettext(Configuration.getInstance().getI18nResourceBundle(),"New version available."));
statusPanel.setNewAvailableVersion(updateManager.getAvailableVersion());