//3. resolve imports
if (!imports.isEmpty()) {
final RequestInfo ri =
new RequestInfoImpl(_wapp, null, null, null, getLocator());
final UiFactory uf = ((WebAppCtrl)_wapp).getUiFactory();
for (Iterator it = imports.iterator(); it.hasNext();) {
final String[] imprt = (String[])it.next();
final String path = imprt[0], dirs = imprt[1];
try {
final PageDefinition pd = uf.getPageDefinition(ri, path);
if (pd == null)
throw new UiException("Import page not found: "+path);
pgdef.imports(pd, parseToArray(dirs));
} catch (PotentialDeadLockException ex) {
throw new UiException("Recursive import: "+path, ex);