CsvReader lineReader = new CsvReader(obsSource);
lineReader.setDelimiter(delimiter.charAt(0));
if (NewStarType.NEW_STAR_FROM_SIMPLE_FILE.equals(newStarType)) {
validator = new SimpleTextFormatValidator(lineReader, newStarType
.getMinFields(), newStarType.getMaxFields(), newStarType
.getFieldInfoSource());
} else if (NewStarType.NEW_STAR_FROM_DOWNLOAD_FILE.equals(newStarType)) {
validator = new AAVSODownloadFormatValidator(lineReader,
newStarType.getMinFields(), newStarType.getMaxFields(),