//TODO might be a hack
List kidsChild = loadChildren(kernel, config.toString());
// Build a response obect containg the started configuration and a list of it's contained modules
TargetModuleIDImpl idChild = new TargetModuleIDImpl(null, config.toString(),
(String[]) kidsChild.toArray(new String[kidsChild.size()]));
if (isWebApp(kernel, config.toString())) {
idChild.setType(ModuleType.WAR);
}
if (idChild.getChildTargetModuleID() != null) {
for (int k = 0; k < idChild.getChildTargetModuleID().length; k++) {
TargetModuleIDImpl child = (TargetModuleIDImpl) idChild.getChildTargetModuleID()[k];
if (isWebApp(kernel, child.getModuleID())) {
child.setType(ModuleType.WAR);
}
}
}
messageStatus += " ";
messageStatus += idChild.getModuleID()+(idChild.getWebURL() == null || !action.equals(START_ACTION) ? "" : " @ "+idChild.getWebURL());
messageStatus += "<br />";
if (idChild.getChildTargetModuleID() != null) {
for (int j = 0; j < idChild.getChildTargetModuleID().length; j++) {
TargetModuleID child = idChild.getChildTargetModuleID()[j];
messageStatus += " `-> "+child.getModuleID()+(child.getWebURL() == null || !action.equals(START_ACTION) ? "" : " @ "+child.getWebURL());
messageStatus += "<br />";
}
}
messageStatus += "<br />";