private void loadAndExport(String inputUrl, Map/*<String,Object>*/ loadProperties, String outputUrl, Map/*<String,Object>*/ storeProperties) throws OpenOfficeException {
XComponent document;
try {
document = loadDocument(inputUrl, loadProperties);
} catch (ErrorCodeIOException errorCodeIOException) {
throw new OpenOfficeException("conversion failed: could not load input document; OOo errorCode: " + errorCodeIOException.ErrCode, errorCodeIOException);
} catch (Exception otherException) {
throw new OpenOfficeException("conversion failed: could not load input document", otherException);
}
if (document == null) {
throw new OpenOfficeException("conversion failed: could not load input document");
}
refreshDocument(document);
try {
storeDocument(document, outputUrl, storeProperties);
} catch (ErrorCodeIOException errorCodeIOException) {
throw new OpenOfficeException("conversion failed: could not save output document; OOo errorCode: " + errorCodeIOException.ErrCode, errorCodeIOException);
} catch (Exception otherException) {
throw new OpenOfficeException("conversion failed: could not save output document", otherException);
}
}