public static URL convertRequestToUrl(BCSHttpRequest paramBCSHttpRequest) {
		String endpoint = paramBCSHttpRequest.getEndpoint() + "/" + paramBCSHttpRequest.getResourcePath();

		int i = 1;
		Map<String, String> param = paramBCSHttpRequest.getParameters();
		
		for (String str2 : paramBCSHttpRequest.getParameters().keySet()) {
			if (i != 0) {
				endpoint = endpoint + "?";
				i = 0;
			} else {
				endpoint = endpoint + "&";
			}

			String str3 = (String) paramBCSHttpRequest.getParameters().get(str2);
			endpoint = endpoint + str2 + "=" + urlEncode(str3);
		}
		try {
			return new URL(endpoint);
		} catch (MalformedURLException localMalformedURLException) {
			throw new BCSClientException("Unable to convert request to well formed URL: " + localMalformedURLException.getMessage(), localMalformedURLException);
		}
	}