class FinanceCostTotalResourceMapper {

    public List<FinanceCostTotalResource> mapFromApplicationFinanceResourceToList(
            ApplicationFinanceResource applicationFinanceResource
    ) {
        return simpleMap(
                applicationFinanceResource.getFinanceOrganisationDetails().entrySet(),
                cat -> buildFinanceCostTotalResource(
                        FinanceType.APPLICATION,
                        cat.getKey(),
                        cat.getValue(),
                        applicationFinanceResource.getId()
                )
        );
    }

}