protected function completeFactory($factory = null) { if ($factory === null) { return new Horde_Kolab_Storage_Factory(); } return $factory; }