class TimerValues {

  @Bean
  public String getCVCRate(TimerConfigurationType timerConfiguration)
  {
    String timerName = "CVC renewal check";

    // Check for configuration value
    if (timerConfiguration != null && timerConfiguration.getCertRenewal() != null)
    {
      TimerType certRenewal = timerConfiguration.getCertRenewal();
      if (certRenewal.getLength() != 0 && certRenewal.getUnit() != 0)
      {
        String rate = String.valueOf(getUnitOfTime(certRenewal.getUnit()) * certRenewal.getLength());
        logRateForTimer(timerName, rate);
        return rate;
      }
    }

    // Set default value to every hour
    String rate = String.valueOf(HOUR);
    logRateForTimer(timerName, rate);
    return rate;
  }

}