question: public static Map < String , Object > updatePaymentApplication ( DispatchContext dctx , Map < String , Object > context ) { if ( ! context . containsKey ( "useHighestAmount" ) ) { context . put ( "useHighestAmount" , "N" ) ; } BigDecimal amountApplied = ( BigDecimal ) context . get ( "amountApplied" ) ; if ( amountApplied != null ) { context . put ( "amountApplied" , amountApplied ) ; } else { context . put ( "amountApplied" , ZERO ) ; } return updatePaymentApplicationDefBd ( dctx , context ) ; }
target:  Service to add payment application records to indicate which invoices have been paid/received. For invoice processing, this service works on the invoice level when 'invoiceProcessing' parameter is set to "Y" else it works on the invoice item level.