public URI build(Object ...objs) throws UriBuilderException {
        String raw = uriBuilder.toString();
        for (Object obj : objs) {
            raw = raw.replaceFirst("\\{[\\w]+}",
                    (obj == null) ? "" : obj.toString());
        }
        String uri = raw + queryParamsBuilder.toString();
        try {
            return new URI(uri);
        } catch (URISyntaxException e) {
            throw new UriBuilderException(raw);
        }
    }