public UriBuilder withoutParameters() {
        int parameterStart = uri.toString().indexOf("?");
        if (parameterStart < 0)
            return new UriBuilder(uri.toString());
        else
            return new UriBuilder(uri.toString().substring(0, parameterStart));
    }
Returns a uri with the given path appended and all parameters removed
container-core/src/main/java/com/yahoo/restapi/UriBuilder.java