* Removes the empty categories from a wizard collection.
*/
private void pruneEmptyCategories(WizardCollectionElement parent) {
Object[] children = parent.getChildren(null);
for (int nX = 0; nX < children.length; nX++) {
WizardCollectionElement child = (WizardCollectionElement) children[nX];
pruneEmptyCategories(child);
boolean shouldPrune = child.getId().equals(FULL_EXAMPLES_WIZARD_CATEGORY);
if (child.isEmpty() && shouldPrune) {
parent.remove(child);
}
}
}