File Net Insert Document
public  static  void  insertDocument ( Connection  conn ,  String  domainName )  {      // Get domain.      Domain  domain =  Factory . Domain . fetchInstance ( conn ,  domainName ,  null );      ObjectStoreSet  osColl =  domain . get_ObjectStores ();       // Get each object store.      Iterator  iterator =  osColl . iterator ();      while  ( iterator . hasNext ())  {          // Get next object store.          ObjectStore  objStore =  ( ObjectStore )  iterator . next ();           // Get the display name of the object store.          String  objStoreName =  objStore . get_DisplayName ();          System . out . println ( "Object store name = "  +  objStoreName );           // Create a document instance.          Document  doc =  Factory . Document . createInstance ( objStore ,  ClassNames . DOCUMENT );           // Set document properties.          doc . getProperties (). putValue ( "DocumentTitle" ,  "New Document via Java API" );          doc . set_Mi...