importer.setImportEventListener( printer );
importer.readImportDescriptor( Test.class.getResourceAsStream( "import.xml" ) );
importer.importDocument( Test.class.getResourceAsStream( "test.xml" ) );
if ( jndi ) {
exporter = new JNDIExporter( ctx );
} else {
exporter = new MozillaExporter( conn );
}
exporter.readSearchDescriptor( Test.class.getResourceAsStream( "search.xml" ) );
exporter.setImportDescriptor( importer.getImportDescriptor() );