private void checkForBlank ( String value , String name ) { if ( StringUtils . isBlank ( value ) ) { throw new IllegalArgumentException ( name + " cannot be empty" ) ; } }
Convenience method to check String parameters that cannot be blank .