Replacing Apache commons-validator with commons-lang3