title: issue with Inserting SECTION in document with openoffice JAVA API
body: <p>I am working on openoffice JAVA API to insert SECTION. I am following the following link:</p>
  
  <p><a href="http://www.oooforum.org/forum/viewtopic.phtml?p=519189#519189" rel="nofollow">http://www.oooforum.org/forum/viewtopic.phtml?p=519189#519189</a></p>
  
  <p>I have a problem while executing the code in above link. I am not able to resolve the object "serviceFactory" (as follows), can anyone please tell me what type of this object is and how to get it??</p>
  
  <pre><code>xChildNamed = (XNamed) UnoRuntime.queryInterface(
  XNamed.class,
  serviceFactory.createInstance("com.sun.star.text.TextSection", document1));
  </code></pre>
  
  <p>Also, please elaborate what the following call does?</p>
  
  <pre><code>componentExport(document2, storeProps, tempDoc);
  </code></pre>
  
  <p>or, 
  can someone please point me to a better solution.</p>