class HooksPhaseGetter {

    public List<HookPhase> getHookPhasesAfterStop(SyncFlowableStep syncFlowableStep, ProcessContext context) {
        if (syncFlowableStep instanceof AfterStepHookPhaseProvider) {
            return ((AfterStepHookPhaseProvider) syncFlowableStep).getHookPhasesAfterStep(context);
        }
        return Collections.singletonList(HookPhase.NONE);
    }

}