code: public static ServiceProperties readServicePropertiesFromStream(final InputStream stream) throws SAXException,
              IOException, ParserConfigurationException {
          SAXParser saxParser = Utility.getSAXParser();
          ServicePropertiesHandler handler = new ServicePropertiesHandler();
          handler.props.setLogging(null);
          handler.props.setHourMetrics(null);
          handler.props.setMinuteMetrics(null);
          handler.props.setCors(null);
          saxParser.parse(stream, handler);
  
          return handler.props;
      }
docs: Parses the {@link ServiceProperties} from the given XML stream.
  
  @param stream
  @throws IOException
  @throws SAXException
  @throws ParserConfigurationException