restygwt/src/main/java/org/fusesource/restygwt/client/Resource.java
public Resource resolve(String path) {

        // it might be an absolute path...
        if (path.startsWith("http:") || path.startsWith("https:") || path.startsWith("file:")) {
            return new Resource(path, query, headers);
        }

        // strip prefix / if needed...
        if (path.startsWith("/")) {
            path = path.substring(1);
        }
        return new Resource(this.path + "/" + path, query, headers);
    }
public Resource resolve(String path) {

        // it might be an absolute path...
        if (path.startsWith("http:") || path.startsWith("https:") || path.startsWith("file:")) {
            return new Resource(path, query, headers);
        }

        // strip prefix / if needed...
        if (path.startsWith("/")) {
            path = path.substring(1);
        }
        return new Resource(this.path + "/" + path, query, headers);
    }
TODO: support fancier resolutions