docs: private static RestRepository initMultiIndices(Settings settings, long currentInstance, Resource resource, Log log) {
          if (log.isDebugEnabled()) {
              log.debug(String.format("Resource [%s] resolves as an index pattern", resource));
          }
  
          // multi-index write - since we don't know before hand what index will be used, use an already selected node
          String node = SettingsUtils.getPinnedNode(settings);
          if (log.isDebugEnabled()) {
              log.debug(String.format("Partition writer instance [%s] assigned to [%s]", currentInstance, node));
          }
  
          return new RestRepository(settings);
      }