try {
screenFiles = FileUtil.findXmlFiles(rootComponentPath, null, "screens", "widget-screen.xsd");
formFiles = FileUtil.findXmlFiles(rootComponentPath, null, "forms", "widget-form.xsd");
controllerFiles = FileUtil.findXmlFiles(rootComponentPath, null, "site-conf", "site-conf.xsd");
} catch (IOException ioe) {
throw new GeneralException(ioe.getMessage());
}
for (File screenFile: screenFiles) {
String screenFilePath = screenFile.getAbsolutePath();
screenFilePath = screenFilePath.replace('\\', '/');
String screenFileRelativePath = screenFilePath.substring(rootComponentPath.length());
String screenLocation = "component://" + componentName + "/" + screenFileRelativePath;
Map<String, ModelScreen> modelScreenMap = null;
try {
modelScreenMap = ScreenFactory.getScreensFromLocation(screenLocation);
} catch (Exception exc) {
throw new GeneralException(exc.toString(), exc);
}
for (String screenName : modelScreenMap.keySet()) {
this.getScreenWidgetArtifactInfo(screenName, screenLocation);
}
}
for (File formFile: formFiles) {
String formFilePath = formFile.getAbsolutePath();
formFilePath = formFilePath.replace('\\', '/');
String formFileRelativePath = formFilePath.substring(rootComponentPath.length());
String formLocation = "component://" + componentName + "/" + formFileRelativePath;
Map<String, ModelForm> modelFormMap = null;
try {
modelFormMap = FormFactory.getFormsFromLocation(formLocation, this.getEntityModelReader(), this.getDispatchContext());
} catch (Exception exc) {
throw new GeneralException(exc.toString(), exc);
}
for (String formName : modelFormMap.keySet()) {
this.getFormWidgetArtifactInfo(formName, formLocation);
}
}
for (File controllerFile: controllerFiles) {
URL controllerUrl = null;
try {
controllerUrl = controllerFile.toURI().toURL();
} catch (MalformedURLException mue) {
throw new GeneralException(mue.getMessage());
}
ControllerConfig cc = ConfigXMLReader.getControllerConfig(controllerUrl);
for (String requestUri: cc.getRequestMapMap().keySet()) {
try {
this.getControllerRequestArtifactInfo(controllerUrl, requestUri);