public static String checkNotBlank ( String text , String errorMessage ) { if ( StringUtils . isBlank ( text ) ) { throw new IllegalArgumentException ( errorMessage ) ; } else { return text ; } }
Verifies not blank text as the utility function .