<BUG>for (Status statusToDelete : EnumSet.complementOf(EnumSet.of(alert.getStatus()))) {futures.add(session.executeAsync(deleteAlertStatus.bind(alert.getTenantId(), statusToDelete.name(),alert.getAlertId())));}futures.add(session.executeAsync(insertAlertStatus.bind(alert.getTenantId(), alert.getAlertId(), alert.getStatus().name())));</BUG><CONTEXT>PreparedStatement insertAlertLifecycle = CassStatement.get(session,CassStatement.INSERT_ALERT_LIFECYCLE);PreparedStatement updateAlert = CassStatement.get(session,CassStatement.UPDATE_ALERT);List<ResultSetFuture> futures = new ArrayList<>();<extra_id_0>Alert.LifeCycle lifecycle = alert.getCurrentLifecycle();</CONTEXT>
[DELETED]