// add functions
List functions = drlInfo.getPackageDescr().getFunctions();
for (Iterator iterator = functions.iterator(); iterator.hasNext();) {
FunctionDescr functionDescr = (FunctionDescr) iterator.next();
String functionName = functionDescr.getName();
Function function = DroolsModelBuilder.addFunction(
pkg, functionName, file, functionDescr.getStartCharacter(),
functionDescr.getEndCharacter() - functionDescr.getStartCharacter() + 1);
// create link between resource and created rule nodes
List droolsElements = (List) resourcesMap.get(file);
if (droolsElements == null) {