public Alarm clear(AlarmId id) { Alarm found = store.getAlarm(id); if (found == null) { log.warn("Alarm {} is not present", id); return null; } Alarm updated = new DefaultAlarm.Builder(found).withId(id).clear().build(); store.setAlarm(updated); return updated; }