docs: private void buildWeightsMap(Map<String, Integer> weights, RpcCommand.ClientCommand command) {
          for (String rule : command.getMergeGroups()) {
              String[] gw = rule.split(":");
              int weight = 1;
              if (gw.length > 1) {
                  try {
                      weight = Integer.parseInt(gw[1]);
                  } catch (NumberFormatException e) {
                      throw new FrameworkException(new Status(WEIGHT_OUT_OF_RANGE, weight));
                  }
                  if (weight < 0 || weight > 100) {
                      throw new FrameworkException(new Status(WEIGHT_OUT_OF_RANGE, weight));
                  }
              }
              weights.put(gw[0], weight);
          }
      }