public static function newResource ($name, $resource, $select = FALSE, $overrride = FALSE, $default = TRUE)
	{
		
		// Set group and name
		
		list ($group, $name) = self::getResourceGroup ($name);
		
		// If the resource already exists and we're not overrriding it throw an exception
		
		if (isset (self::$resources[$group][$name]) && !$overrride)
		{
			throw new Exception ('The ' . ($group? $group . '\\': '') . $name . ' resource already exists.');
		}
		
		// If we're setting the resource as default or no resource default exists, set as default
		
		if ($select || ($default && !self::getGroupSetting ($group, 'default')))
		{
			self::setGroupSetting ($group, 'default', $name);
		}
		
		// Set the resource
		
		self::$resources[$group][$name]	= $resource;
		
	}