String[] parsedValues = currentSetting.trim().split(",");
if (!(currentSetting.trim().isEmpty() || parsedValues.length == 3)) {
DriftCategory[] filterCategories = new DriftCategory[parsedValues.length];
int i = 0;
for (String priority : parsedValues) {
DriftCategory c = DriftCategory.valueOf(priority);
filterCategories[i++] = c;
}
criteria.addFilterCategories(filterCategories);
}