class SeyrenRepository {

    public void updateAlarm(final Alarm alarm) {

        // TODO : serialize/deserialize java 8 java.time with Jackson JSON mapper
        // com.fasterxml.jackson.databind.JsonMappingException: Can not instantiate value of type [simple type, class org.joda.time.DateTime] from Floating-point number (1.467041095011E9); // NOSONAR
        // no one-double/Double-arg constructor/factory method at [Source: org.apache.catalina.connector.CoyoteInputStream@22c7305d; line:
        // 14, column: 16] (through reference chain: com.seyren.core.domain.Alarm["lastAlarm"])
        alarm.setLastCheck(null);

        LOGGER.debug("Updating alarm {}", alarm.getId());
        restTemplate.put(seyrenUrl + API_ALARMS + "/" + alarm.getId(), alarm, String.class);
    }

}