code: @Deprecated
  	public void generateErrorAndRequiredClassForLabels(UIInput input, ResponseWriter rw, String clientId,
  			String additionalClass) throws IOException {
  		String styleClass = getErrorAndRequiredClass(input, clientId);
  		if (null != additionalClass) {
  			additionalClass = additionalClass.trim();
  			if (additionalClass.trim().length() > 0) {
  				styleClass += " " + additionalClass;
  			}
  		}
  		UIForm currentForm = AJAXRenderer.getSurroundingForm((UIComponent) input, true);
  		if (currentForm instanceof Form) {
  			if (((Form) currentForm).isHorizontal()) {
  				styleClass += " control-label";
  			}
  		}
  		if (input instanceof IResponsiveLabel) {
  			String responsiveLabelClass = Responsive.getResponsiveLabelClass((IResponsiveLabel) input);
  			if (null != responsiveLabelClass) {
  				styleClass += " " + responsiveLabelClass;
  			}
  		}
  
  		rw.writeAttribute("class", styleClass, "class");
  	}
docs: @deprecated Use
  {@link CoreRenderer#generateErrorAndRequiredClass(javax.faces.component.UIInput, javax.faces.context.ResponseWriter, java.lang.String, java.lang.String, java.lang.String, java.lang.String) }
  instead
  
  Renders the CSS pseudo classes for required fields and for the
  error levels.
  
  @param input
  @param rw
  @param clientId
  @throws IOException