class SeyrenRepository {

    public Alarm getAlarm(final String id) {
        try {
            return restTemplate.getForObject(seyrenUrl + API_ALARMS + "/" + id, Alarm.class);
        } catch (final HttpStatusCodeException exception) {
            throw new SeyrenException("getAlarm", exception.getStatusCode().value());
        } catch (final ResourceAccessException exception) {
            throw new CerebroException(ErrorCode.ALARM_UNKNOWN, "Alarm with id '" + id + "' not found", exception);
        }
    }

}