/**	
  * Creates a dav collection as a child of this object.
  *
  * @param	string		the name of the collection.
  * @return	ilObjectDAV	returns the created collection, or null if creation failed.
  */
 function createCollection($name)
 {
     global $tree;
     // create and insert Folder in tree
     require_once 'Modules/Folder/classes/class.ilObjFolder.php';
     $newObj = new ilObjFolder(0);
     $newObj->setType($this->getILIASCollectionType());
     $newObj->setTitle($name);
     //$newObj->setDescription('');
     $newObj->create();
     $newObj->createReference();
     $newObj->setPermissions($this->getRefId());
     $newObj->putInTree($this->getRefId());
     require_once 'class.ilObjFolderDAV.php';
     return new ilObjFolderDAV($newObj->getRefId(), $newObj);
 }