}
private boolean matchesInternalDate(final SearchQuery.DateOperator operator, final Message<?> message)
throws UnsupportedSearchException {
final Date date = operator.getDate();
final DateResolution res = operator.getDateResultion();
final Date internalDate = message.getInternalDate();
final SearchQuery.DateComparator type = operator.getType();
switch (type) {
case ON:
return on(internalDate, date, res);