{
// create our standard CRM database document
database = new CRMDatabase( m_orb, true );
// create a form document therein
XFormDocumentsSupplier formDocSupp = UnoRuntime.queryInterface( XFormDocumentsSupplier.class, database.getDatabase().getModel() );
XMultiServiceFactory formFactory = UnoRuntime.queryInterface( XMultiServiceFactory.class, formDocSupp.getFormDocuments() );
NamedValue[] loadArgs = new NamedValue[] {
new NamedValue( "ActiveConnection", database.getConnection().getXConnection() ),
new NamedValue( "MediaType", "application/vnd.oasis.opendocument.text" )
};