public static Report loadReport(InputStream is) throws LoadReportException {
		try {
			String xml = readAsString(is);
			String convertedXml = ConverterChain.applyFromXml(xml);
			XStream xstream = XStreamFactory.createXStream();
			return (Report) xstream.fromXML(convertedXml);
		} catch (Exception ex) {
			LOG.error(ex.getMessage(), ex);
			throw new LoadReportException(ex.getMessage(), ex);
		}
	}
public static Report loadReport ( InputStream is ) throws LoadReportException { try { String xml = readAsString ( is ) ; String convertedXml = ConverterChain . applyFromXml ( xml ) ; XStream xstream = XStreamFactory . createXStream ( ) ; return ( Report ) xstream . fromXML ( convertedXml ) ; } catch ( Exception ex ) { LOG . error ( ex . getMessage ( ) , ex ) ; throw new LoadReportException ( ex . getMessage ( ) , ex ) ; } }
Create a report object from an input stream Do a conversion if it is
needed

@since 5.2

@param is
input stream
@return the report object created from the input stream or null if cannot
be read
@throws LoadReportException
if report object cannot be created