public static function getDefaultCache()
 {
     if (Engine_Registry::isRegistered('cache-default')) {
         return Engine_Registry::get('cache-default');
     }
 }
 /**
  * Get the resource as specified by $type and $profile
  * 
  * @param string $type
  * @param string $profile
  * @return mixed
  */
 public function load($type, $profile = null)
 {
     $key = $type . '-' . ($profile ? $profile : 'default');
     if (!Engine_Registry::isRegistered($key)) {
         $object = $this->factory($type, $profile);
         if (!$object) {
             throw new Engine_ServiceLocator_Exception(sprintf('Unknown configuration format for class %s for %s', $class, $key));
         }
         Engine_Registry::set($key, $object);
     }
     return Engine_Registry::get($key);
 }