}
// add globals
List globals = drlInfo.getPackageDescr().getGlobals();
for (Iterator iterator = globals.iterator(); iterator.hasNext();) {
GlobalDescr globalDescr = (GlobalDescr) iterator.next();
Global global = DroolsModelBuilder.addGlobal(
pkg, globalDescr.getIdentifier(), file, globalDescr.getStartCharacter(),
globalDescr.getEndCharacter() - globalDescr.getStartCharacter() + 1);
// create link between resource and created rule nodes
List droolsElements = (List) resourcesMap.get(file);
if (droolsElements == null) {