manageImportedEntities function + added a quick method to check the file extension