protected function checkApiMethodIsSupported($methodName)
    {
        if (empty($this->validApiMethods)
            || !in_array($methodName, $this->validApiMethods)
        ) {
            throw new ValidationError('API method is not supported');
        }
    }