this.url.append(url); this.seenQuestionMark = this.url.indexOf("?") != -1;
if (url != null) {  int index = url.indexOf('#'); if (index != -1) { this.anchor = url.substring(index+1); url = url.substring(0, index); }  this.url.append(url); this.seenQuestionMark = this.url.indexOf("?") != -1; }
    public UrlBuilder(String url, boolean isForPage) {        this.url.append(url);        this.seenQuestionMark = this.url.indexOf("?") != -1;        if (isForPage) {            this.parameterSeparator = "&amp;";        }        else {            this.parameterSeparator = "&";        }    }