code: public static String notEmpty(String value, String name) {
          return notEmpty(value, name, null);
      }
docs: Check that a string is not null and not empty. If null or emtpy throws an IllegalArgumentException.
  
  @param value value.
  @param name parameter name for the exception message.
  @return the given value.