code: @Override
  	public void encodeBegin(FacesContext context, UIComponent component) throws IOException {
  		if (!component.isRendered()) {
  			return;
  		}
  		InternalJavaScriptResource internalJavaScriptResource = (InternalJavaScriptResource) component;
  		ResponseWriter rw = context.getResponseWriter();
  
  		rw.startElement("script", internalJavaScriptResource);
  		rw.writeAttribute("src", internalJavaScriptResource.getUrl(), null);
  
  		rw.endElement("script");
  
  	}
docs: This methods generates the HTML code of the current b:internalJavaScriptResource.
  @param context the FacesContext.
  @param component the current b:internalJavaScriptResource.
  @throws IOException thrown if something goes wrong when writing the HTML code.