anchor.diff:          int i = 0;
           
           if(Conf.getProfiles().get(ts.getSourcesName()) == null){
  -        	sourceId = sourceIdKey;
  +            sourceId = sourceIdKey;
           } else {
  -        	sourceId = ts.getSourcesName();
  +            sourceId = ts.getSourcesName();
           }
  -	      for (ProfileEntry profile : Conf.getProfiles().get(sourceId)) {
  -	          out.println("<h3>Profile: " + profile.getTitle() + "</h3>");
  -	          if (ts.getProfiles().contains(profile.getId())) {
  -	        	  String path = sessionId + "/" + profile.getLocalName();
  +          for (ProfileEntry profile : Conf.getProfiles().get(sourceId)) {
  +              out.println("<h3>Profile: " + profile.getTitle() + "</h3>");
  +              if (ts.getProfiles().contains(profile.getId())) {
  +                  String path = sessionId + "/" + profile.getLocalName();
                 complete = ViewLog.view_log(suiteName,userlog, path, tests, ViewLogTemplates, out, (i+2));
  -				      out.println("<br/>");
  +                      out.println("<br/>");
                 profileParams += "&amp;" + "profile_" + Integer.toString(i) + "=" + URLEncoder.encode(profile.getId(), "UTF-8");
                 i++;
  -		      }
  -	      }
  +              }
  +          }
         }
   %>
   
  
positive.code: DocumentBuilderImpl DB;
  Templates ViewLogTemplates;
  public void jspInit() {
  	try {
  		Conf = new Config();
  		File stylesheet = Misc.getResourceAsFile("com/occamlab/te/web/viewoldlog.xsl");
  		ViewLogTemplates = ViewLog.transformerFactory.newTemplates(new StreamSource(stylesheet));
  	} catch (Exception e) {
  		e.printStackTrace(System.out);
  	}
  }
  %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  
negative.code:         out.println("<input type=\"button\" value=\"Resume executing this session\" onclick=\"window.location = 'test.jsp?mode=resume&amp;session=" + sessionId + "'\"/>");
        }
  --%>
          <br/>
          <input type="button" value="Execute this session again" onclick="window.location = 'test.jsp?mode=retest&amp;session=<%=request.getParameter("session")%><%=profileParams%>'"/>
  <%
        boolean hasCache = ViewLog.hasCache();
        if (hasCache) {
            out.print(  "<input type=\"button\" value=\"Redo using cached values\" onclick=\"window.location = 'test.jsp?mode=cache&amp;session=" + sessionId + profileParams + "'\"/>");
        }
  %>
          <input type="button" value="Delete this session" onclick="deleteSession()"/>
          <input type="button" value="Download log Files" onclick="window.location = 'downloadLog?session=<%=request.getParameter("session")%>'"/>
  <!--         <input type="button" value="Create execution log report file" onclick="window.location = 'prettyPrintLogs?session=<%=request.getParameter("session")%>'"/>  -->
  <%--        <input type="button" value="Email log Files" onclick="window.location = 'emailLog?session=<%=request.getParameter("session")%>'"/> --%>
          <br/>
      <p><a href="viewSessions.jsp">Sessions list</a></p>
          <%@ include file="footer.jsp" %>                
      </body>
  </html>
  