try {
// Jersey does not allow for null entity on put.
Entity entity = Entity.entity("", MediaType.WILDCARD_TYPE);
WebTarget webTarget = newWebTarget(databaseName);
Response response = webTarget.request(MediaType.APPLICATION_JSON_TYPE)
.put(entity);
CouchHttpStatus statusCode = CouchHttpStatus.findByCode(response.getStatus());
String eTag = getETag(response);
byte[] content = response.readEntity(byte[].class);