Refactoring  doImportRAI