+ // import any data if requested to
+ if (importFile!=null)
+ {
+ File vfile = new File(importFile);
+ try
+ {
+ vorbaclient.importDocument(vfile);
+ }
+ catch (Exception e)
+ {
+ System.err.println("Failed to import file "+importFile);
+ System.err.println("Exception received was "+e);
+ e.printStackTrace(System.err);
+ }
+
+ }
+ // Write out any data if requested to
+ if (outputFile!=null)
+ {
+ File vfile = new File(outputFile);
+ try
+ {
+ vorbaclient.storeDocument(vfile);
+ }
+ catch (Exception e)
+ {
+ System.err.println("Failed to export session as file "+outputFile);
+ System.err.println("Exception received was "+e);
+ e.printStackTrace(System.err);
+ }
+ }