/**
   * Parses a {@link ContainerListResponse} form the given XML stream.
   *
   * @param serviceClient a reference to the client object associated with this object.
   * @param stream the stream from which to parse the container list
   * @throws SAXException
   * @throws ParserConfigurationException
   * @throws IOException
   */
  protected static ListResponse<CloudBlobContainer> getContainerList(
      final InputStream stream, final CloudBlobClient serviceClient)
      throws ParserConfigurationException, SAXException, IOException {
    SAXParser saxParser = Utility.getSAXParser();
    ContainerListHandler handler = new ContainerListHandler(serviceClient);
    saxParser.parse(stream, handler);

    return handler.response;
  }