/**
  * Testing getting a configuration option.
  * @param key to search for
  * @return mixed result of configuration key.
  * @access public
  */
 static function getConfig($key)
 {
     if (isset(self::$configs[$key])) {
         return self::$configs[$key];
     }
     //try configure setting
     if (self::$configs[$key] = Configure::read("Queue.{$key}")) {
         return self::$configs[$key];
     }
     //try load configuration file and try again.
     Configure::load('queue');
     self::$configs = Configure::read('Queue');
     if (self::$configs[$key] = Configure::read("Queue.{$key}")) {
         return self::$configs[$key];
     }
     return null;
 }