code: private void checkForBlank(String value, String name) {
          if (StringUtils.isBlank(value)) {
              throw new IllegalArgumentException(name + " cannot be empty");
          }
      }
docs: Convenience method to check String parameters that cannot be blank.
  
  @param value The parameter value.
  @param name The parameter name, for exception messages.