public synchronized void loadCurrentResource() {
		String s = getResourceAddress();
		if (s == null) {
			setLoadingMessagePainted(false);
			return;
		}
		setLoadingMessagePainted(true);
		if (FileUtilities.isRemote(s)) {
			s = FileUtilities.httpEncode(s);
			if (ConnectionManager.sharedInstance().isCachingAllowed()) {
				URL u = null;
				try {
					u = new URL(s);
				}
				catch (MalformedURLException e) {
					e.printStackTrace();
				}
				if (u != null) {
					File file = null;
					try {
						file = ConnectionManager.sharedInstance().shouldUpdate(u);
						if (file == null)
							file = ConnectionManager.sharedInstance().cache(u);
						setResourceAddress(file.getAbsolutePath());
					}
					catch (IOException e) {
						e.printStackTrace();
					}
				}
			}
		}
		super.loadCurrentResource();
	}