protected function getModelReflection()
    {
        $modelClassName = str_replace('/', '\\', $this->input->getArgument('model'));

        try {
            $reflection = new ReflectionClass($this->getAppNamespace() . $modelClassName);
        } catch (\ReflectionException $e) {
            $reflection = new ReflectionClass($modelClassName);
        }

        if (!$reflection->isSubclassOf(Model::class) || !$reflection->isInstantiable()) {
            throw new NotAnInstanceOfException(sprintf('The model must be an instance of [%s]', Model::class));
        }

        return $reflection;
    }