/** * Creates a <CODE>Section</CODE>, add it to this <CODE>Section</CODE> and returns it. * * @param numberDepth the numberDepth of the section * @return a new Section object */ public MarkedSection addSection(int numberDepth) { MarkedSection section = ((Section) element).addMarkedSection(); section.setNumberDepth(numberDepth); return section; }