public function createInstance()
    {
        if (is_null($this->entityName)) {
            $class = new \ReflectionClass($this->originalEntityName);
        } else {
            $class = new \ReflectionClass($this->entityName);
        }

        return $class->newInstanceArgs();
    }