code: public String getURL(String classAndParams) throws IOException, SQLException {
  		String className, params;
  		int pos=classAndParams.indexOf('?');
  		if(pos==-1) {
  			className=classAndParams;
  			params=null;
  		} else {
  			className=classAndParams.substring(0, pos);
  			params=classAndParams.substring(pos+1);
  		}
  		return getURL(className, params);
  	}
docs: Gets a relative URL from a String containing a classname and optional parameters.
  Parameters should already be URL encoded but not XML encoded.