code: protected List<Container> callRemoteKieServerOperation(ServerTemplate serverTemplate,
                                                             ContainerSpec containerSpec,
                                                             RemoteKieServerOperation operation) {
          List<Container> containers = new ArrayList<org.kie.server.controller.api.model.runtime.Container>();
  
          if (serverTemplate.getServerInstanceKeys() == null || serverTemplate.getServerInstanceKeys().isEmpty() || containerSpec == null) {
              return containers;
          }
  
          for (ServerInstanceKey instanceUrl : serverTemplate.getServerInstanceKeys()) {
  
              Container container = new Container();
              container.setContainerSpecId(containerSpec.getId());
              container.setServerTemplateId(serverTemplate.getId());
              container.setServerInstanceId(instanceUrl.getServerInstanceId());
              container.setUrl(instanceUrl.getUrl() + "/containers/" + containerSpec.getId());
              container.setStatus(containerSpec.getStatus());
  
              try {
                  final KieServicesClient client = getClient(instanceUrl.getUrl());
                  operation.doOperation(client, container);
                  containers.add(container);
              } catch (Exception e) {
                  logger.debug("Unable to connect to {}",
                               instanceUrl);
              }
          }
  
          return containers;
      }
docs: /*
  helper methods