anchor.diff:     String NoResults = (String) request.getAttribute("searchResultsEmpty");
      TreeSet<IdPSite> SResults = (TreeSet<IdPSite>) request.getAttribute("searchresults");
   
  +
      String shire = (String) request.getAttribute("shire");
      String target = (String) request.getAttribute("target");
      String providerId = (String) request.getAttribute("providerId");
      String time = (String) request.getAttribute("time");
  +
  +   EntityDescriptor sp = (EntityDescriptor) request.getAttribute("providerObject");
      
      String entityId = (String) request.getAttribute("entityID");
      String returnX = (String) request.getAttribute("returnX");
  
positive.code:          returnX = (String) session.getAttribute("returnX");
           returnIDParam = (String) session.getAttribute("returnIDParam");
        }
  
    } else { 
        saml1Protocol = (null == entityId);
        urlBuilder.append((String) request.getAttribute("requestURL"));
  
negative.code: 		<div id="organisation-select-view">
  			<a href="#maincontent" class="hide" tabindex="1" accesskey="S">Skip to content</a>
  
  			<div id="co-branding">
                             <% if (spLogo != null) { %>
                                 <div>
                                 <img src="<%=spLogo%>" alt="<%=spName%>"/></div>
                             <% } %>
                             Logging on to <%=spName%>
                          </div>
  			<h1>Which organisation would you like to sign in with?</h1>
  			<span id="maincontent"></span>
  			<div class="hide" id="intro">
  