* @return The empty ListEntry that is now part of the document.
* @deprecated Use code shall not work with {@link ParagraphProperties}
*/
@Deprecated
public ListEntry insertBefore(ParagraphProperties props, int listID, int level, int styleIndex) {
ListTables lt = _doc.getListTables();
if (lt.getLevel(listID, level) == null) {
throw new NoSuchElementException("The specified list and level do not exist");
}
int ilfo = lt.getOverrideIndexFromListID(listID);
props.setIlfo(ilfo);
props.setIlvl((byte) level);
return (ListEntry) insertBefore(props, styleIndex);
}