@SuppressWarnings("rawtypes")
	private String getQueryString(HttpServletRequest request) {
		StringBuilder sb = new StringBuilder(request.getServletPath());
		
		Enumeration parameterNames = request.getParameterNames();
		boolean firstParameter = true;
		while (parameterNames.hasMoreElements()) {
			String parameterName = parameterNames.nextElement().toString();
			String[] values = request.getParameterValues(parameterName);
			if (values != null && values.length > 0) {
				for (String value : values) {
					if (org.apache.commons.lang.StringUtils.isNotEmpty(value)) {
						sb.append(firstParameter ? "?" : "&");
						sb.append(parameterName);
						sb.append("=");
						sb.append(value);

						firstParameter = false;
					}
					break;
				}
			}
		}
		return sb.toString();
	}