public static function loadFromXML(ProtectedXMLReader $reader)
	{
		if($reader == null)
			return null;
		$group = new Group();
		$d = $reader->depth();
		while($reader->read($d))
		{
			if($reader->isElement(Database::XML_GROUP))
				$group->addGroup(Group::loadFromXML($reader));
			elseif($reader->isElement(Database::XML_ENTRY))
				$group->addEntry(Entry::loadFromXML($reader));
			elseif($reader->isElement(Database::XML_UUID))
				$group->uuid = $reader->readTextInside();
			elseif($reader->isElement(Database::XML_NAME))
				$group->name = $reader->readTextInside();
			elseif($reader->isElement(Database::XML_ICONID))
				$group->icon = $reader->readTextInside();
			elseif($reader->isElement(Database::XML_CUSTOMICONUUID))
				$group->customIcon = $reader->readTextInside();
		}
		return $group;
	}