public static boolean isEmpty(String string) {
    return string == null || string.length() == 0;
  }
Returns true if the string is null or empty.
geode-core/src/main/java/org/apache/geode/admin/jmx/internal/AgentConfigImpl.java