question: public void addMiscellaneousTaxesClone ( final UnitTaxCalculationInfo unit , final UnitTaxCalculationInfo clone ) { LOGGER . debug ( "Entered into addMiscellaneousTaxesClone" ) ; for ( final MiscellaneousTax miscTax : unit . getMiscellaneousTaxes ( ) ) { final MiscellaneousTax newMiscTax = new APMiscellaneousTax ( ) ; newMiscTax . setTaxName ( miscTax . getTaxName ( ) ) ; newMiscTax . setTotalActualTax ( miscTax . getTotalActualTax ( ) ) ; newMiscTax . setTotalCalculatedTax ( miscTax . getTotalCalculatedTax ( ) ) ; newMiscTax . setHasChanged ( miscTax . getHasChanged ( ) ) ; for ( final MiscellaneousTaxDetail miscTaxDetail : miscTax . getTaxDetails ( ) ) { final MiscellaneousTaxDetail newMiscTaxDetail = new APMiscellaneousTaxDetail ( ) ; newMiscTaxDetail . setTaxValue ( miscTaxDetail . getTaxValue ( ) ) ; newMiscTaxDetail . setActualTaxValue ( miscTaxDetail . getActualTaxValue ( ) ) ; newMiscTaxDetail . setCalculatedTaxValue ( miscTaxDetail . getCalculatedTaxValue ( ) ) ; final Calendar calendar = Calendar . getInstance ( ) ; calendar . setTime ( miscTaxDetail . getFromDate ( ) ) ; newMiscTaxDetail . setFromDate ( calendar . getTime ( ) ) ; newMiscTaxDetail . setNoOfDays ( miscTaxDetail . getNoOfDays ( ) ) ; newMiscTaxDetail . setIsHistory ( miscTaxDetail . getIsHistory ( ) ) ; newMiscTaxDetail . setHistoryALV ( miscTaxDetail . getHistoryALV ( ) ) ; newMiscTax . addMiscellaneousTaxDetail ( newMiscTaxDetail ) ; } clone . addMiscellaneousTaxes ( newMiscTax ) ; } LOGGER . debug ( "Exiting from addMiscellaneousTaxesClone" ) ; }
target:  Adds the MiscellaneousTaxe Clones to clone