public Paragraph insertParagraph(int index){
  Paragraph p=new Paragraph(this,this,factory);
  setParagraphMagic(p,index);
synchronized (paragraphs) {
    paragraphs.add(index,p);
  }
  if (noteEventListener != null) {
    noteEventListener.onParagraphCreate(p);
  }
  return p;
}

public Paragraph insertParagraph ( int index ) { Paragraph p = new Paragraph ( this , this , factory ) ; setParagraphMagic ( p , index ) ; synchronized ( paragraphs ) { paragraphs . add ( index , p ) ; } if ( noteEventListener != null ) { noteEventListener . onParagraphCreate ( p ) ; } return p ; }
insert paragraph in given index .
