split the ingest logic to allow the use of a different importer
use the downcast method for checking the repository type and downcast it