public function registerFromDirectorySource($directory)
    {
        $object = $this->getValidPortableElementFromDirectorySource($directory);
        if (is_null($object)) {
            throw new PortableElementNotFoundException('No valid portable element model found in the directory '.$directory);
        }

        return $this->registerModel($object, $directory);
    }