private EgDemandDetails createDemandDetails(final BigDecimal amount,final EgDemandReason dmdRsn,final Installment inst){
  LOGGER.debug("Entered into createDemandDetails, amount: " + amount + ", dmdRsn: "+ dmdRsn+ ", inst: "+ inst);
  final EgDemandDetails demandDetail=new EgDemandDetails();
  demandDetail.setAmount(amount);
  demandDetail.setAmtCollected(BigDecimal.ZERO);
  demandDetail.setAmtRebate(BigDecimal.ZERO);
  demandDetail.setEgDemandReason(dmdRsn);
  demandDetail.setCreateDate(new Date());
  demandDetail.setModifiedDate(new Date());
  LOGGER.debug("demandDetail: " + demandDetail + "\nExiting from createDemandDetails");
  return demandDetail;
}

private EgDemandDetails createDemandDetails ( final BigDecimal amount , final EgDemandReason dmdRsn , final Installment inst ) { LOGGER . debug ( "Entered into createDemandDetails, amount: " + amount + ", dmdRsn: " + dmdRsn + ", inst: " + inst ) ; final EgDemandDetails demandDetail = new EgDemandDetails ( ) ; demandDetail . setAmount ( amount ) ; demandDetail . setAmtCollected ( BigDecimal . ZERO ) ; demandDetail . setAmtRebate ( BigDecimal . ZERO ) ; demandDetail . setEgDemandReason ( dmdRsn ) ; demandDetail . setCreateDate ( new Date ( ) ) ; demandDetail . setModifiedDate ( new Date ( ) ) ; LOGGER . debug ( "demandDetail: " + demandDetail + "\nExiting from createDemandDetails" ) ; return demandDetail ; }
creates demand details for the demand reason which being passed
