public static function getResourceGroup ($name)
	{
		
		// Set group
		
		$group	= FALSE;
		
		// If the name is an array
		
		if (is_array ($name))
		{
			
			// Count name elements
			
			$count	= count ($name);
			
			// If the name is longer than 2 elements or less than 1
			
			if ($count < 1 || $count > 2)
			{
				throw new Exception ('You must only pass the resource group and name for a resource.');
			}
			
			// Else if the name only has 1 element
			
			else if ($count == 1)
			{
				
				// Set name to the single element
				
				$name	= $name[0];
				
			}
			
			// Else we have 2 elements for the group and name
			
			else
			{
				
				// Set group and name
				
				$group	= $name[0];
				$name	= $name[1];
				
			}
			
		}
		
		// If there is no group
		
		if (!$group)
		{
			
			// Set group to name
			
			$group	= $name;
			
		}
		
		// Return group and name
		
		return array ($group, $name);
		
	}