private static void savePgr(DispatchContext dctx,GenericValue pgr){
  Map<String,GenericValue> context=UtilMisc.<String,GenericValue>toMap("paymentGatewayResponse",pgr);
  LocalDispatcher dispatcher=dctx.getDispatcher();
  Delegator delegator=dctx.getDelegator();
  try {
    dispatcher.addRollbackService("savePaymentGatewayResponse",context,true);
    delegator.create(pgr);
  }
 catch (  Exception e) {
    Debug.logError(e,module);
  }
}

private static void savePgr ( DispatchContext dctx , GenericValue pgr ) { Map < String , GenericValue > context = UtilMisc . < String , GenericValue > toMap ( "paymentGatewayResponse" , pgr ) ; LocalDispatcher dispatcher = dctx . getDispatcher ( ) ; Delegator delegator = dctx . getDelegator ( ) ; try { dispatcher . addRollbackService ( "savePaymentGatewayResponse" , context , true ) ; delegator . create ( pgr ) ; } catch ( Exception e ) { Debug . logError ( e , module ) ; } }
saves either a paymentgatewayresponse or paymentgatewayrespmsg value and ensures that the value is persisted even in the event of a rollback .
