class UriForLocationHeaderSupplier implements Supplier<Uri> {

    @Override
    public Uri get() {
        final Uri requestUri = httpRequest.getUri().query(Query.EMPTY); // strip query params
        if (isRequestIdempotent()) {
            return requestUri.query(Query.EMPTY);
        }
        return Uri.create(removeTrailingSlash(getLocationUriString(removeEntityId(requestUri.toString()))))
                .query(Query.EMPTY);
    }

      UriForLocationHeaderSupplier(final HttpRequest httpRequest, final CommandResponse<?> commandResponse);

}