private String _calcKeyString(URI uri, int mode) {
			String scheme = uri.getScheme();
			String host = uri.getHost();
			int portInt = uri.getPort();
			String port = (portInt < 0) ? null : ("" + portInt);
			String path = uri.getPath();

			if (host != null) {
				if (host.length() < 1)
					host = null;
			}
			if (path != null) {
				if (path.length() <= 1)
					path = null;
			}

			if ((mode & SCHEME) == 0)
				scheme = null;
			if ((mode & HOST) == 0)
				host = null;
			if ((mode & PORT) == 0)
				port = null;
			if ((mode & PATH) == 0)
				path = null;
			return ("[" + scheme + host + port + path + "]");
		}