protected static function loadClass($entity, $type)
	{
		if (strpos($type, '.'))
		{
			list($prefix, $type) = explode('.', $type);
		}
		else
		{
			$prefix = 'Joomla';
		}

		$class = ucfirst($prefix) . '\\Form\\' . ucfirst($entity);

		// If type is complex like modal\foo, do uppercase each term
		if (strpos($type, '\\'))
		{
			$class .= '\\' . StringHelper::ucfirst($type, '\\');
		}
		else
		{
			$class .= '\\' . ucfirst($type);
		}

		$class .= ucfirst($entity);

		// Check for all if the class exists.
		return class_exists($class) ? $class : false;
	}