protected <T extends DataReader<?>, TR> void importCsvFile( Class<T> dataReader, Class<TR> innerType, Locale locale) { String path = org.jatakasource.common.utils.FileUtils.getDirectoryPath(dataReader); path = JarUtils.addLocale(locale, path); Assert.notNull(path, "Can't find package path for Class: " + dataReader.getName()); if (path.contains(JarUtils.JAR_EXTENSION)) { importCSVService.importAll(dataReader, locale); } else { saveFiles(path, dataReader, innerType); } List<TR> savedInstances = domainObjectDao.getAll(innerType); Assert.notEmpty(savedInstances, "Unable to read elemets from database !!!"); }