anchor.diff:  <%@page language="java"
   	contentType="text/html"
   	session="true"
  -	import="org.opennms.web.element.*"
  +	import="java.util.ArrayList,
  +			java.util.Collection,
  +			java.util.LinkedList,
  +			org.opennms.netmgt.model.OnmsCategory,
  +			org.opennms.netmgt.model.OnmsNode,
  +			org.opennms.web.element.*,
  +	        org.opennms.netmgt.dao.CategoryDao,
  +	        org.opennms.netmgt.dao.NodeDao,
  +	        org.springframework.web.context.WebApplicationContext,
  +	        org.springframework.web.context.support.WebApplicationContextUtils
  +		   "
   %>
   
   <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
  +
  +<%
  +WebApplicationContext m_webAppContext = WebApplicationContextUtils.getRequiredWebApplicationContext(getServletContext());
  +
  +NodeDao m_nodeDao;
  +try {
  +    m_nodeDao = (NodeDao) m_webAppContext.getBean("nodeDao", Class.forName("org.opennms.netmgt.dao.NodeDao"));
  +} catch (ClassNotFoundException e) {
  +    throw new ServletException(e);
  +}
  +
  +CategoryDao m_categoryDao;
  +try {
  +    m_categoryDao = (CategoryDao) m_webAppContext.getBean("categoryDao", Class.forName("org.opennms.netmgt.dao.CategoryDao"));
  +} catch (ClassNotFoundException e) {
  +    throw new ServletException(e);
  +}
  +%>
   
   <%
       Node[] nodes = null;
  
positive.code:     } else if (ifAliasParm != null) {
          nodes = NetworkElementFactory.getNodesWithIfAlias(ifAliasParm);
          isIfAliasSearch = true;
      } else {
          nodes = NetworkElementFactory.getAllNodes();
      }
  
negative.code:     String ipLikeParm = request.getParameter("iplike");
      String serviceParm = request.getParameter("service");
      String ifAliasParm = request.getParameter("ifAlias");
      String[] categories1 = request.getParameterValues("category1");
      String[] categories2 = request.getParameterValues("category2");
      boolean listInterfaces = (request.getParameter("listInterfaces") != null);
      boolean isIfAliasSearch = false;
      boolean categorySearch = false;
  
      if (nameParm != null) {
          nodes = NetworkElementFactory.getNodesLike(nameParm);
  