code: public static void notNullOrEmpty(final String string, final String message) throws IllegalArgumentException {
          if (string == null || string.length() == 0) {
              throw new IllegalArgumentException(message);
          }
      }
docs: Checks that the specified String is not null or empty,
  throws exception if it is.
  
  @param string
  The object to check
  @param message
  The exception message
  
  @throws IllegalArgumentException
  Thrown if obj is null