code: public static String checkNotEmpty(String str, String message) {
          if (checkNotNull(str).isEmpty()) {
              throw new IllegalArgumentException(message);
          }
          return str;
      }
docs: Throws a IllegalArgumentException if given String is empty
  
  @param str     the parameter to check
  @param message the parameter to check
  @return the provided parameter