public static boolean containsIgnoringCase(final String nullableString, final String value) {
        if (nullableString != null) {
            return nullableString.toLowerCase().contains(value.toLowerCase());
        } else {
            return false;
        }
    }
@param nullableString the string to check
@param value          the string to match against
@return {@code true} is nullableString is not null and contains the supplied value, otherwise {@code false}
xmppserver/src/main/java/org/jivesoftware/util/StringUtils.java