class TerminationTriggerService {

    public void triggerTermination(Stack stack, boolean forced) {
        flowCancelService.cancelTooOldTerminationFlowForResource(stack.getId(), stack.getName());
        if (!stack.isDeleteCompleted()) {
            handleIfStackIsNotTerminated(stack, forced);
        } else {
            LOGGER.debug("Stack is already deleted.");
        }
    }

}