private String getSingleSlotHtml(TestSlot s, String icon) {
    StringBuilder builder = new StringBuilder();
    TestSession session = s.getSession();
    String borderColour = null;
    
    if(s.getProxy() instanceof ReliabilityAwareProxy) {
    	ReliabilityAwareProxy proxy = (ReliabilityAwareProxy) s.getProxy();
    	if(proxy.isCapabilityWorking(s.getCapabilities())) {
    		borderColour = "white";
    	}
    	else if(proxy.isCapabilityBroken(s.getCapabilities())) {
    		borderColour = "red";
    	}
    	else {
    		borderColour = "yellow";
    	}
    }
    
    if (icon != null) {
      builder.append("<img ");
      builder.append("src='").append(icon).append("' width='16' height='16'");
    } else {
      builder.append("<a href='#' ");
    }
    
    if(borderColour != null) {
    	builder.append("style='border: " + borderColour + " solid 2px;'");
    }

    if (session != null) {
      builder.append(" class='busy' ");
      builder.append(" title='").append(session.get("lastCommand")).append("' ");
    } else {
      builder.append(" title='").append(s.getCapabilities()).append("'");
    }

    if (icon != null) {
      builder.append(" />\n");
    } else {
      builder.append(">");
      builder.append(s.getCapabilities().get(CapabilityType.BROWSER_NAME));
      builder.append("</a>");
    }
    return builder.toString();
  }