code: private void assertNotNullOrEmpty(String value, String message, boolean isState) throws IllegalArgumentException {
          if (value == null || value.length() == 0) {
              if (isState) {
                  throw new IllegalStateException(message);
              } else {
                  throw new IllegalArgumentException(message);
              }
          }
      }
docs: Assert that the value is not null or empty.
  
  @param value   the value
  @param message the message to include with any exceptions
  @param isState if true, throw a state exception instead
  
  @throws IllegalArgumentException if value is null
  @throws IllegalStateException    if value is null and isState is true