public function fromArray(array $data, $modelClass = null)
    {
        if (null === $modelClass) {
            $modelClass = $this->getModelClass();
        }

        return $this->client->getHydrator()->hydrate($modelClass, $data);
    }