class DefaultRetryTemplateConverter implements RetryTemplateConverter {

  @Override
  public RetryTemplate construct(final Locked locked) {
    final var retryTemplate = new RetryTemplate();
    retryTemplate.setRetryPolicy(resolveLockRetryPolicy(locked));
    retryTemplate.setBackOffPolicy(resolveBackOffPolicy(locked));
    return retryTemplate;
  }

}