try {
TextDocument doc = TextDocument.newTextDocument();
Section sect = doc.appendSection("List Section");
ListDecorator numberDecorator = new NumberDecorator(doc);
ListDecorator outLineDecorator = new OutLineDecorator(doc);
String[] subItemContents = { "sub list item 1", "sub list item 2",
"sub list item 3" };
List list1 = new List(sect);
boolean removeResult = sect.removeList(list1);