anchor.diff:      PollerConfig pollerCfgFactory = PollerConfigFactory.getInstance();
       pollerCfgFactory.rebuildPackageIpListMap();
   
  +    Package lastPkg = null;
       Enumeration<Package> en = pollerCfgFactory.enumeratePackage();
  -    Package lastPkg = null;
       while (en.hasMoreElements()) {
           Package pkg = en.nextElement();
           if (!pkg.getRemote() &&
  
positive.code:         org.opennms.netmgt.config.poller.Service,
          org.opennms.netmgt.config.poller.Parameter,
          org.opennms.netmgt.model.OnmsMonitoredService,
  		org.opennms.web.springframework.security.Authentication
  	"
  %>
  <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
  
negative.code:             lastPkg = pkg;
          }
      }
      pageContext.setAttribute("packageName", lastPkg == null ? "N/A" : lastPkg.getName());
  
      ServiceMonitor monitor = pollerCfgFactory.getServiceMonitor(serviceName);
      pageContext.setAttribute("monitorClass", monitor == null ? "N/A" : monitor.getClass().getName());
  
      Map<String,String> parameters = new TreeMap<String,String>();
      Map<String,String> xmlParams  = new TreeMap<String,String>();
      if (lastPkg != null) {
          for (Service s : lastPkg.getServiceCollection()) {
              if (s.getName().equalsIgnoreCase(serviceName)) {
                  for (Parameter p : s.getParameterCollection()) {
                      if (p.getKey().toLowerCase().equals("password")) {
                          continue; // Hide passwords for security reasons
                      }
                      if (p.getValue() == null) {
                          xmlParams.put(p.getKey(), p.getAnyObject().toString().replaceAll("<","&lt;").replaceAll(">", "&gt;").replaceAll("[\\r\\n]+", "<br/>"));
                      } else {
                          parameters.put(p.getKey(), p.getValue());
                      }
                  }
              }
          }
          pageContext.setAttribute("parameters", parameters);
          pageContext.setAttribute("xmlParams", xmlParams);
      }
  %>
  
  