class BeanFactoryAwareIntervalConverter implements IntervalConverter {

  @Override
  public long toMillis(final Interval interval) {
    return convertToMilliseconds(interval, resolveMilliseconds(interval));
  }

}