public static boolean isNullOrEmpty(String str) {
    return str == null || str.isEmpty();
  }
Convenient utility class with static methods.
samza-sql-shell/src/main/java/org/apache/samza/sql/client/util/CliUtil.java