ContractFlowStep currentContractStep = contractFlowStatesRegistry.getFlowStep(contractStatus);
if(currentContractStep == null) {
throw new BusinessLogicException("Cannot find processor to process contract status '" + contractStatus + "'");
}
return currentContractStep.nextStep(contract);
}
}