code: public static ServiceStats readServiceStatsFromStream(final InputStream inStream)
              throws ParserConfigurationException, SAXException, IOException {
          SAXParser saxParser = Utility.getSAXParser();
          ServiceStatsHandler handler = new ServiceStatsHandler();
          saxParser.parse(inStream, handler);
  
          return handler.stats;
      }
docs: Constructs a {@link ServiceStats} object from an XML document received from the service.
  
  @param inStream
  The XMLStreamReader object.
  @return
  A {@link ServiceStats} object containing the properties in the XML document.
  
  @throws SAXException
  @throws ParserConfigurationException
  @throws IOException