code: public static List<AppliesToEntry> parseAppliesToEntries(String appliesTo) {
          List<AppliesToEntry> result = new ArrayList<AppliesToEntry>();
          List<List<String>> parsedProducts = doParse(appliesTo);
          for (List<String> parsedProduct : parsedProducts) {
              AppliesToEntry entry = new AppliesToEntry();
              for (String productChunk : parsedProduct) {
                  entry.add(productChunk);
              }
              result.add(entry);
          }
          return result;
      }
docs: Parse the given raw appliesTo header into a list
  of AppliesToEntry objects