Could this while(true) be changed to while(!validationSet.isEmpty()) and then remove the if...break?