}
try {
ByteArrayOutputStream out = new ByteArrayOutputStream();
out.write(url.getBytes());
out.write(IHttpClient.QUESTION_MARK);
new FormUrlEncodedMediaType().writeTo(new ParameterValueMap(urlParameters), out);
return out.toString();
} catch (IOException e) {
throw new OpenShiftException(e, "Could not add paramters {0} to url {1}", urlParameters, url);
} catch (EncodingException e) {
throw new OpenShiftException(e, "Could not add paramters {0} to url {1}", urlParameters, url);