public static Optional<Condition> getBooleanCondition(final Field<Boolean> field,
                                                          final Boolean value) {
        return Optional.ofNullable(value)
                .map(field::eq);
    }
Used to build jOOQ conditions from string criteria

@param field    The jOOQ field being queried
@param criteria The criteria to apply
@return A condition that applies the given criteria
stroom-db-util/src/main/java/stroom/db/util/JooqUtil.java