protected function fetchParameters($locationOrArray)
    {
        // Yup, it's an array. Return it.
        if (is_array($locationOrArray)) {
            return $locationOrArray;
        }

        // It's a file.
        $maybeConfig = ConfigFactory::loadConfigFile($locationOrArray);

        Validator::mustBeAnArray($maybeConfig);
        Validator::mustNotBeEmpty($maybeConfig);

        return $maybeConfig;
    }