protected static function singleton(GatewayType $gateway_adapter)
 {
     if (!self::$instance) {
         self::$instance = new self($gateway_adapter);
     }
     return self::$instance;
 }
 static function singleton(&$gateway_adapter)
 {
     if (!self::$instance) {
         self::$instance = new self($gateway_adapter);
     }
     return self::$instance;
 }
 /**
  * Runs all the post-process logic that has been enabled and configured in
  * donationdata.php and/or LocalSettings.php, including the ActiveMQ/Stomp
  * queue message.
  * This function is most likely to be called through
  * executeFunctionIfExists, later on in do_transaction.
  */
 protected function postProcessDonation()
 {
     Gateway_Extras_CustomFilters_IP_Velocity::onPostProcess($this);
     Gateway_Extras_ConversionLog::onPostProcess($this);
     try {
         $this->doStompTransaction();
     } catch (Exception $ex) {
         $this->logger->alert("Failure queueing final status message: {$ex->getMessage()}");
     }
 }