class Consul {

    public boolean createPermanentData(final String name, final String data) {
        final Response response = httpClient
                .target(endpoint)
                .path("/v1/kv/").path(name)
                .queryParam("cas", "0")
                .request()
                .put(Entity.text(data));
        if (response.getStatus() != Response.Status.OK.getStatusCode()) {
            LOG.log(Level.WARNING, "Could not create permanent value " + name + "/" + data
                    + " got response " + response.getStatus() + " but expected 200");
            return false;
        }
        // Well. THIS is ugly. Never mind the return code (409 anyone) but use a f--ing string
        // to return the status. To top it off Consul says it is json.
        // (*bangs head agains wall*)
        final String result = response.readEntity(String.class);
        if (result.equals("true")) {
            return true;
        }
        return false;
    }

    public  Consul(final String endpoint);

}