@Autowired
private CloudbreakEventService cloudbreakEventService;
@Override
public void accept(Event<StackDeleteComplete> stackDeleteComplete) {
StackDeleteComplete data = stackDeleteComplete.getData();
retryingStackUpdater.updateStackStatus(data.getStackId(), Status.DELETE_COMPLETED);
cloudbreakEventService.fireCloudbreakEvent(data.getStackId(), BillingStatus.BILLING_STOPPED.name(), "Stack delete completed");
Stack oneWithLists = stackRepository.findOneWithLists(data.getStackId());
MDCBuilder.buildMdcContext(oneWithLists);
LOGGER.info("Accepted {} event.", ReactorConfig.DELETE_COMPLETE_EVENT);
stackRepository.delete(oneWithLists);
websocketService.sendToTopicUser(oneWithLists.getOwner(), WebsocketEndPoint.TERMINATE,
new StatusMessage(oneWithLists.getId(), oneWithLists.getName(), Status.DELETE_COMPLETED.name(), String.format("Stack delete completed")));