class DefaultRetriableLockFactory implements RetriableLockFactory {

  @Override
  public RetriableLock generate(final Lock lock, final Locked locked) {
    return new RetriableLock(lock, retryTemplateConverter.construct(locked));
  }

}