class DetectorClient {

    public void updatedDetectorLastUsed(UUID uuid) {
        val uri = String.format(baseUri + UPDATE_DETECTOR_LAST_USED_PATH);
        val bodyMap = Collections.singletonMap("detectorUuid", uuid);
        try {
            val body = objectMapper.writeValueAsString(bodyMap);
            httpClient.post(uri, body);
        } catch (IOException e) {
            val message = "IOException while updating detector's dateLastAccessed value for" +
                    ": uuid=" + uuid +
                    ", httpMethod=POST" +
                    ", uri=" + uri;
            throw new DetectorException(message, e);
        }
    }

}