public Object[] getChildren(Object parentElement) {
if (parentElement instanceof WizardCollectionElement) {
@SuppressWarnings("rawtypes")
ArrayList list = new ArrayList();
WizardCollectionElement element = (WizardCollectionElement) parentElement;
if(!((WizardCollectionElement) parentElement).getId().equals("cgfiles")&&
!((WizardCollectionElement) parentElement).getId().equals("xvrengine.category.wizards.xvr")&&
!((WizardCollectionElement) parentElement).getId().equals("xvrengine.category.wizards.html")&&
!((WizardCollectionElement) parentElement).getId().equals("xvrengine.category.wizards.others"))
return new Object[0];
Object[] childCollections = element.getChildren();
for (int i = 0; i < childCollections.length; i++) {
handleChild(childCollections[i], list);
}
Object[] childWizards = element.getWizards();
for (int i = 0; i < childWizards.length; i++) {
handleChild(childWizards[i], list);
}
// flatten lists with only one category