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(),
newStarType.getFieldInfoSource());
}
assert (validator != null);