anchor.diff:    ~
     ~ http://gxa.github.com/gxa
     --%>
  -
  -<jsp:useBean id="atlasStatistics" class="uk.ac.ebi.microarray.atlas.model.AtlasStatistics" scope="application"/>
  -<jsp:useBean id="atlasProperties" class="uk.ac.ebi.gxa.properties.AtlasProperties" scope="application"/>
  +<jsp:useBean id="atlasStatistics" type="uk.ac.ebi.microarray.atlas.model.AtlasStatistics" scope="application"/>
  +<jsp:useBean id="atlasProperties" type="uk.ac.ebi.gxa.properties.AtlasProperties" scope="application"/>
   
   <%
       String rec = request.getParameter("rec");
       String prefix = request.getParameter("start");
   
  -    if(null == prefix)
  -               prefix = "a";
  +    if (null == prefix)
  +        prefix = "a";
   
       int recordCount = GeneListCacheService.PAGE_SIZE;
   
       //if anything passed in "rec=" URL param - retrieve all, otherwise - first PageSize
  -    if(null != rec)
  -    {
  +    if (null != rec) {
           recordCount = 100000;
       }
   
  -    GeneListCacheService geneListServlet = (GeneListCacheService)application.getAttribute(Atlas.GENES_CACHE.key());
  -    Collection<AutoCompleteItem> genes = null;
  +    GeneListCacheService geneListServlet = (GeneListCacheService) application.getAttribute(Atlas.GENES_CACHE.key());
  +    Collection<AutoCompleteItem> genes;
       try {
           genes = geneListServlet.getGenes(prefix, recordCount);
           request.setAttribute("Genes", genes);
  -    }
  -    catch (Exception e) {
  -        e.printStackTrace();
  +    } catch (Exception e) {
  +        log.error("Cannot retrieve genes: " + e.getMessage(), e);
       }
   %>
   
  
positive.code: <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
  <%@ page import="ae3.service.structuredquery.AutoCompleteItem" %>
  <%@ page import="ae3.service.GeneListCacheService" %>
  <%@ page import="uk.ac.ebi.gxa.web.Atlas" %>
  <%@ page import="java.util.Collection" %>
  <%@ taglib uri="http://ebi.ac.uk/ae3/functions" prefix="u" %>
  <%@ taglib prefix="f" uri="http://java.sun.com/jsp/jstl/functions" %>
  <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
  <%--
    ~ Copyright 2008-2010 Microarray Informatics Team, EMBL-European Bioinformatics Institute
    ~
  
negative.code:     </c:forEach>
  
      <%
          String NextURL = "index.htm?start=" + prefix + "&rec=" + Integer.toString(GeneListCacheService.PAGE_SIZE);
  
          //AZ:2009-07-23:it can be less unique gene names then requested PageSize => cut corner and add "more" always.
          request.setAttribute("more", true);
      %>
  
      <c:if test="${more}">
  