anchor.diff:  	import org.exist.storage.ElementValue;
   	import org.exist.xquery.functions.map.MapExpr;
   	import org.exist.xquery.functions.array.ArrayConstructor;
  +
  +	import static org.apache.commons.lang3.ArrayUtils.isNotEmpty;
   }
   
   /**
  
positive.code:             }
              importedModules.add(moduleNamespaceUri);
  
              try {
                  context.importModule(moduleNamespaceUri, modulePrefix, uriList.toArray(new AnyURIValue[uriList.size()]));
                  staticContext.declareNamespace(modulePrefix, moduleNamespaceUri);
              } catch (final XPathException xpe) {
                  xpe.prependMessage("error found while loading module " + modulePrefix + ": ");
                  throw xpe;
              }
  		}
  	)
  
negative.code: 	protected boolean foundError = false;
  	protected Map<String, String> declaredNamespaces = new HashMap<>();
  	protected Set<String> importedModules = new HashSet<>();
  	protected Set<String> importedModuleFunctions = null;
  	protected Set<QName> declaredGlobalVars = new TreeSet<>();
  
  	public XQueryTreeParser(XQueryContext context) {
  