try
{
CsvReader csvReader = new CsvReader(new StringReader(request.getString("__csvdata")));
String entityName = this.getFormScreen().getEntityClass().getSimpleName();
EntitiesImporter entitiesImporter = this.getFormScreen().getCsvEntityImporter();
entitiesImporter.setDatabase(db);
EntityImportReport importReport = null;
try
{
importReport = entitiesImporter.importEntities(csvReader, entityName, DatabaseAction.ADD);
}
finally
{
csvReader.close();
}