private function getLaunchDataParameter(LtiLaunchData $data, $name) {
        if ($data->hasVariable($name)) {
            return $data->getVariable($name);
        }

        throw new LtiVariableMissingException($name);
    }