public void input(URL url, boolean reset) {
		if (url == null)
			return;
		resourceAddress = url.toString();
		view.setResourceAddress(resourceAddress);
		try {
			String xyzAddress = FileUtilities.changeExtension(resourceAddress, "xyz");
			xyzAddress = FileUtilities.httpEncode(xyzAddress);
			File file = ConnectionManager.sharedInstance().shouldUpdate(xyzAddress);
			if (file == null)
				file = ConnectionManager.sharedInstance().cache(xyzAddress);
			file = ConnectionManager.sharedInstance().shouldUpdate(resourceAddress);
			if (file == null) {
				try {
					file = ConnectionManager.sharedInstance().cache(resourceAddress);
				}
				catch (FileNotFoundException fnfe) {
				}
			}
			if (file != null) {
				input(file, reset);
			}
			else {
				try {
					inputXyz(new URL(xyzAddress));
					inputMdd(new URL(FileUtilities.httpEncode(resourceAddress)));
				}
				catch (Exception e) {
					e.printStackTrace();
				}
				view.setLoadingMessagePainted(false);
				view.refresh();
			}
		}
		catch (IOException e) {
			e.printStackTrace();
		}
		if (!reset) {
			model.clearMouseScripts();
		}
	}