code: protected static PrefixedNameSet namesetFromSpecs(boolean nsAware, ContentSpec[] specs)
      {
          int len = specs.length;
          PrefixedName[] nameArray = new PrefixedName[len];
          for (int i = 0; i < len; ++i) {
              nameArray[i] = ((TokenContentSpec)specs[i]).getName();
          }
  
          if (len < 5) { // 4 or fewer elements -> small
              return new SmallPrefixedNameSet(nsAware, nameArray);
          }
          return new LargePrefixedNameSet(nsAware, nameArray);
      }
docs: /*
  /////////////////////////////////////////////////
  Package methods
  /////////////////////////////////////////////////