/**
  * return an instance of this class. Ensure only one instance exists for a given request
  *
  * @return betfairDialogue object instance
  */
 public static function getInstance()
 {
     if (!isset(self::$instance)) {
         $c = __CLASS__;
         self::$instance = new $c();
     }
     return self::$instance;
 }
 /**
  * return an instance of this class. Ensure only one instance exists for a given request
  *
  * @return betfairDialogue object instance
  */
 public static function getInstance()
 {
     if (!isset(self::$instance)) {
         $c = __CLASS__;
         self::$instance = new $c();
     }
     /* initialize the logger for this instance */
     $logger = betfairLogger::getInstance();
     return self::$instance;
 }