private ConfigDescriptor[] getAllDescriptors() {
if (configEntries != null) {
List descriptors = new ArrayList();
for (Iterator i = configEntries.iterator(); i.hasNext(); ) {
ConfigEntry entry = (ConfigEntry) i.next();
addConfigEntryRecursive(entry, descriptors);
}
return (ConfigDescriptor[]) descriptors.toArray(new ConfigDescriptor[descriptors.size()]);