private static long parseDateTime(final String type,
                                      final String value,
                                      final DateTimeSettings dateTimeSettings) {
        try {
            return DateExpressionParser.getMs(type, value, dateTimeSettings);
        } catch (final Exception e) {
            throw RestUtil.badRequest("DateTime term has an invalid '" + type + "' value of '" + value + "'");
        }
    }
Recursive method to populates the passed list with all enabled
{@link ExpressionTerm} nodes found in the tree.
stroom-statistics/stroom-statistics-impl-sql/src/main/java/stroom/statistics/impl/sql/search/StatStoreCriteriaBuilder.java