code: @Override
  	public void encodeBegin(FacesContext context, UIComponent component) throws IOException {
  		if (!component.isRendered()) {
  			return;
  		}
  		SelectBooleanCheckbox selectBooleanCheckbox = (SelectBooleanCheckbox) component;
  		ResponseWriter rw = context.getResponseWriter();
  		String clientId = selectBooleanCheckbox.getClientId(context);
  		
  		String span = null;
  		if (!isHorizontalForm(component)) {
  			span = startColSpanDiv(rw, selectBooleanCheckbox);
  		}
  		rw.startElement("div", component);
  		rw.writeAttribute("id", clientId, null);
          writeAttribute(rw,"class", getWithFeedback(InputMode.DEFAULT, component), "class");
          if (null != selectBooleanCheckbox.getDir()) {
  			rw.writeAttribute("dir", selectBooleanCheckbox.getDir(), "dir");
  		}
  
  		addLabel(rw, clientId, selectBooleanCheckbox);
  
  		renderInputTag(context, rw, clientId, selectBooleanCheckbox);
  
  		rw.endElement("div");
  		closeColSpanDiv(rw, span);
  
  		Tooltip.activateTooltips(context, selectBooleanCheckbox);
  
  	}
docs: This methods generates the HTML code of the current
  b:selectBooleanCheckbox.
  
  @param context
  the FacesContext.
  @param component
  the current b:selectBooleanCheckbox.
  @throws IOException
  thrown if something goes wrong when writing the HTML code.