code: private static String getOverlaySpan(String cssClass, String title) {
  
          StringBuffer result = new StringBuffer();
          result.append("<span class=\"").append(cssClass).append("\"");
          if (title != null) {
              result.append(" title=\"").append(title).append("\"");
          }
          result.append("></span>");
          return result.toString();
      }
docs: Generates an overlay icon span.<p>
  
  @param title the span title
  @param cssClass the CSS class
  
  @return the span element string