source = ViewProcessor.getView(manager.open(), pageFile.getPath(), null);
manager.close();
}
catch (Exception e)
{
throw new InterfaceConfigException("Error parsing screen ["+pageFile.toString()+"].", e);
}
NodeList elementList = source.getElementsByTagName("script");
int length = elementList.getLength();
for (int i = 0; i < length; i++)
{
Element element = (Element) elementList.item(i);
String src = element.getAttribute("src");
if (src != null && src.endsWith(MODULE_IMPORT_SUFFIX))
{
if (result != null)
{
throw new InterfaceConfigException("Multiple modules in the same html page is not allowed in CRUX.");
}
int lastSlash = src.lastIndexOf("/");
if(lastSlash >= 0)