docs: public static List<ModelServiceInstance> filter(ServiceInstanceQuery query, List<ModelServiceInstance> list) {
  
          List<ModelServiceInstance> instances = new ArrayList<ModelServiceInstance>();
          for (ModelServiceInstance instance : list) {
              boolean passed = true;
              for (QueryCriterion criterion : query.getCriteria()) {
                  if (criterion.isMatch(instance.getMetadata()) == false) {
                      passed = false;
                      break;
                  }
              }
              if (passed) {
                  instances.add(instance);
              }
          }
          return instances;
  
      }