class CashFlowController {

    @SuppressWarnings("PMD.AvoidInstantiatingObjectsInLoops")
    public CashFlowForm prepareCashFlowForm(int startYear, int startMonth, int noOfMonths, BigDecimal loanAmount,
                                            Double indebtednessRatio, boolean captureCapitalLiabilityInfo) {
        CashFlowDetail cashFlowDetail = cashFlowService.cashFlowFor(startYear, startMonth, noOfMonths);
        return new CashFlowForm(cashFlowDetail, captureCapitalLiabilityInfo, loanAmount, indebtednessRatio);
    }

    @Autowired public  CashFlowController(CashFlowService cashFlowService);

}