public static boolean contains(final String str, final String subStr) {
        return str != null
               && subStr != null
               && str.contains(subStr);
    }
@return True if both str and subStr are non-null and str contains subStr
stroom-util-shared/src/main/java/stroom/util/shared/NullSafe.java