code: public void registerParagraphStyle(RtfParagraphStyle rtfParagraphStyle) {
          RtfParagraphStyle tempStyle = new RtfParagraphStyle(this.document, rtfParagraphStyle);
          tempStyle.handleInheritance();
          tempStyle.setStyleNumber(this.styleMap.size());
          this.styleMap.put(tempStyle.getStyleName(), tempStyle);
      }
docs: Register a RtfParagraphStyle with this RtfStylesheetList.
  
  @param rtfParagraphStyle The RtfParagraphStyle to add.