question: @ Transactional public long createVoucherFromBill ( final int billId ) throws ApplicationRuntimeException { try { String voucherStatus = null ; final List vStatusList = appConfigValuesService . getConfigValuesByModuleAndKey ( "EGF" , "DEFAULTVOUCHERCREATIONSTATUS" ) ; if ( ! vStatusList . isEmpty ( ) && vStatusList . size ( ) == 1 ) { final AppConfigValues appVal = ( AppConfigValues ) vStatusList . get ( 0 ) ; voucherStatus = appVal . getValue ( ) ; } else throw new ApplicationRuntimeException ( "DEFAULTVOUCHERCREATIONSTATUS" + MISSINGMSG ) ; final long vh = createVoucher . createVoucherFromBill ( billId , voucherStatus , null , null ) ; return vh ; } catch ( final Exception e ) { LOGGER . error ( e . getMessage ( ) ) ; throw new ApplicationRuntimeException ( e . getMessage ( ) ) ; } }
target:  Api to create voucher from bill with normal flow