code: private void validateMetricRange(DateTime from, DateTime to) throws InvalidMetricCriteriaException {
          if (from.isAfter(to)) {
              throw ExceptionFactory.invalidMetricCriteriaException(Messages.i18n.format("OrganizationResourceImpl.InvalidMetricDateRange")); //$NON-NLS-1$
          }
      }
docs: Ensures that the given date range is valid.