I added empty array here as this is used in String[] types = ValidationUtils.getListOfObjectsToValidate(type); and there is no need to worry about 'types' getting null or blank when iterating the array. Pls correct if it is wrong.