private static boolean equals(final Object value, final String text, final Boolean ignoreCase) {
        if (value == null || text == null) {
            return false;
        } else {
            return switch (value) {
                case NodeInfo nodeInfo -> equalsAsString(nodeInfo.getStringValue(), text, ignoreCase);
                case String str -> equalsAsString(str, text, ignoreCase);
                case Double aDouble -> equalsAsDouble(aDouble, text);
                case Long aLong -> equalsAsLong(aLong, text);
                case Boolean aBool -> equalsAsBoolean(aBool, text);
                default -> equalsAsString(value.toString(), text, ignoreCase);
            };
        }
    }
@return value as a string, trimmed and, if ignoreCase is true, converted to lower case
stroom-pipeline/src/main/java/stroom/pipeline/filter/SAXEventRecorder.java