@ SuppressWarnings ( "unchecked" ) private List < BudgetSubAwardsContract > findBudgetSubawards ( String namespace , BudgetContract budget , boolean checkNull ) { List < BudgetSubAwardsContract > budgetSubAwardsList = new ArrayList <> ( ) ; for ( BudgetSubAwardsContract subAwards : budget . getBudgetSubAwards ( ) ) { if ( StringUtils . equals ( namespace , subAwards . getNamespace ( ) ) || ( checkNull && StringUtils . isBlank ( subAwards . getNamespace ( ) ) ) ) { budgetSubAwardsList . add ( subAwards ) ; } } return budgetSubAwardsList ; }
This method is to find the subaward budget BOs for the given namespace .