for (Target aTargetList : targetList) {
TargetImpl target = (TargetImpl) aTargetList;
AbstractName storeName = target.getAbstractName();
List infos = configurationManager.listConfigurations(storeName);
for (Object info1 : infos) {
ConfigurationInfo info = (ConfigurationInfo) info1;
if (filter.accept(info)) {
String name = info.getConfigID().toString();
List list = CommandSupport.loadChildren(kernel, name);
TargetModuleIDImpl moduleID = new TargetModuleIDImpl(target, name, (String[]) list.toArray(new String[list.size()]));
moduleID.setType(CommandSupport.convertModuleType(info.getType()));
if (moduleID.getChildTargetModuleID() != null) {
for (int k = 0; k < moduleID.getChildTargetModuleID().length; k++) {
TargetModuleIDImpl child = (TargetModuleIDImpl) moduleID.getChildTargetModuleID()[k];
if (CommandSupport.isWebApp(kernel, child.getModuleID())) {
child.setType(ModuleType.WAR);