try {
inputStream = context.openInputStream();
viewerXmlHandler = new ViewerXmlHandler(this);
xmlReader = XMLUtil.getXMLReader();
xmlReader.setContentHandler(viewerXmlHandler);
xmlReader.setErrorHandler(new LoggingSAXErrorHandler());
xmlReader.parse(new InputSource(inputStream));
component = viewerXmlHandler.getComponent();
Assert.assertNotNull("component", component);
} catch (Exception e) {
throw new Exception("error processing XML JRat output file", e);