docs: public List<AbstractCounterConfiguration> parseConfigurations(InputStream is) throws XMLStreamException {
        BufferedInputStream input = new BufferedInputStream(is);
        XMLStreamReader reader = XMLInputFactory.newInstance().createXMLStreamReader(input);
        CounterManagerConfigurationBuilder builder = new CounterManagerConfigurationBuilder(null);
        try {
           reader.require(START_DOCUMENT, null, null);
           reader.nextTag();
           reader.require(START_ELEMENT, null, null);
           Element element = Element.forName(reader.getLocalName());
           switch (element) {
              case COUNTERS: {
                 parseCountersElement(reader, builder);
                 break;
              }
              default: {
                 throw ParseUtils.unexpectedElement(reader);
              }
           }
        } finally {
           reader.close();
        }
        return builder.create().counters();
     }