return this.internalRef .substring(queryIndex + 1, fragmentIndex);
if (queryIndex < fragmentIndex) {  return this.internalRef.substring(queryIndex + 1, fragmentIndex); } else { return null; }
    public String getQuery() {        if (queryIndex != -1) {            // Query found            if (fragmentIndex != -1) {                // Fragment found                return this.internalRef                        .substring(queryIndex + 1, fragmentIndex);            } else {                // No fragment found                return this.internalRef.substring(queryIndex + 1);            }        } else {            // No query found            return null;        }    }