Can we do this as a fluent api instead?

    URI ref = uriInfo.getBaseUriBuilder()
            .path(ApplicationApi.class)
            .path(ApplicationApi.class, "get")
            .build(app.getApplicationId());