code: private String[] readParamValues() throws BuildException {
          final ArrayList<String> prop = new ArrayList<>();
          for (final ParamElem p : params) {
              if (!p.isValid()) {
                  throw new BuildException("Incomplete parameter");
              }
              if (isValid(getProject(), getLocation(), p.getIf(), p.getUnless())) {
                  final int idx = Integer.parseInt(p.getName()) - 1;
                  if (idx >= prop.size()) {
                      prop.ensureCapacity(idx + 1);
                      while (prop.size() < idx + 1) {
                          prop.add(null);
                      }
                  }
                  prop.set(idx, p.getValue());
              }
          }
          return prop.toArray(new String[0]);
      }
docs: Read parameter values to an array.
  
  @return parameter values where array index corresponds to parameter name