protected void getSupplementationFromOtherSources(Budget budget, Map<Integer, String> hmBudgetQuestions) {

        if (!hmBudgetQuestions.isEmpty()) {
            if (hmBudgetQuestions.get(OTHER_SUPP_SOURCE) != null) {
                if (hmBudgetQuestions.get(OTHER_SUPP_SOURCE).toString().toUpperCase().equals("Y")) {
                    SupplementationFromOtherSources supplementationFromOtherSources = budget
                            .addNewSupplementationFromOtherSources();
                    if (hmBudgetQuestions.get(SUPP_SOURCE) != null) {
                        supplementationFromOtherSources.setSource(hmBudgetQuestions.get(SUPP_SOURCE).toString());
                        supplementationFromOtherSources.setAmount(new BigDecimal(hmBudgetQuestions.get(SUPP_FUNDING_AMT).toString()));
                        try {
                            supplementationFromOtherSources.setNumberOfMonths(new BigDecimal(hmBudgetQuestions.get(SUPP_MONTHS).toString()));
                        } catch (Exception ex) {
                        }
                        supplementationFromOtherSources.setType(hmBudgetQuestions.get(SUPP_TYPE).toString());

                    }
                }
            }
        }
    }
protected void getSupplementationFromOtherSources ( Budget budget , Map < Integer , String > hmBudgetQuestions ) { if ( ! hmBudgetQuestions . isEmpty ( ) ) { if ( hmBudgetQuestions . get ( OTHER_SUPP_SOURCE ) != null ) { if ( hmBudgetQuestions . get ( OTHER_SUPP_SOURCE ) . toString ( ) . toUpperCase ( ) . equals ( "Y" ) ) { SupplementationFromOtherSources supplementationFromOtherSources = budget . addNewSupplementationFromOtherSources ( ) ; if ( hmBudgetQuestions . get ( SUPP_SOURCE ) != null ) { supplementationFromOtherSources . setSource ( hmBudgetQuestions . get ( SUPP_SOURCE ) . toString ( ) ) ; supplementationFromOtherSources . setAmount ( new BigDecimal ( hmBudgetQuestions . get ( SUPP_FUNDING_AMT ) . toString ( ) ) ) ; try { supplementationFromOtherSources . setNumberOfMonths ( new BigDecimal ( hmBudgetQuestions . get ( SUPP_MONTHS ) . toString ( ) ) ) ; } catch ( Exception ex ) { } supplementationFromOtherSources . setType ( hmBudgetQuestions . get ( SUPP_TYPE ) . toString ( ) ) ; } } } } }
/*
This method is used to set data to SupplementationFromOtherSources XMLObject from budgetMap data for Budget