code: private String stripParms(String dissURL) {
  		// if no parameters, simply return passed in string.
  		if (dissURL.indexOf('?') == -1) {
  			return dissURL;
  		}
  		String parmString = dissURL.substring(dissURL.indexOf('?') + 1,
  				dissURL.length());
  		String[] parms = parmString.split("&");
  		StringBuffer sb = new StringBuffer();
  		sb.append(dissURL, 0, dissURL.indexOf('?') + 1);
  		int index = -1;
  		for (String element : parms) {
  			int len = element.length() - 1;
  			if (element.lastIndexOf(')') != len) {
  				sb.append(element + "&");
  				index = sb.length() - 1;
  			}
  		}
  		if (index != -1 && index + 1 == sb.length()) {
  			sb.setLength(index);
  		}
  		return sb.toString();
  	}
docs: <p>
  Removes any optional userInputParms which remain in the dissemination
  URL. This occurs when a method has optional parameters and the user does
  not supply a value for one or more of the optional parameters. The result
  is a syntax similar to "parm=(PARM_BIND_KEY)". This method removes these
  non-supplied optional parameters from the string.
  </p>
  
  @param dissURL
  String to be processed.
  @return An edited string with parameters removed where no value was
  specified for any optional parameters.