private String renderMultiVersionTemplate(String template, int numberOfVersions) {
    if (numberOfVersions > MAX_NUMBER_OF_VERSIONS_IN_DELETE) {
      throw new IllegalArgumentException("Too many versions requested: " + numberOfVersions);
    }
    String placeholder = IntStream.range(0, numberOfVersions).mapToObj(i -> "? ").collect(Collectors.joining(", "));
    return template.replace(MULTI_VERSION_PLACE_HOLDER, placeholder);
  }
Render a sql template with the number of versions to delete. The template should contain MULTI_VERSION_PLACE_HOLDER.
The number of versions provided in the argument would determine how many "?" to put int the sql command.
@param template The template string.
@param numberOfVersions
@return
ambry-named-mysql/src/main/java/com/github/ambry/named/MySqlNamedBlobDb.java