private function buildArguments($key)
    {
        $newArguments = [];
        if ($this->serviceConfig->keyExists($key)) {
            $arguments = $this->serviceConfig->key($key);
            if (!$this->isArray($arguments)) {
                throw new ServiceManagerException(ServiceManagerException::INVALID_SERVICE_ARGUMENTS_TYPE,
                                                  [$this->serviceName]
                );
            }
            foreach ($arguments as $arg) {
                $newArguments[] = new Argument($arg);
            }
        }
        $this->serviceConfig->key($key, $newArguments);
    }