public void encodeEnd(FacesContext facesContext, UIComponent component) throws IOException {
ResponseWriter responseWriter = facesContext.getResponseWriter();
responseWriter.startElement("command",component);
responseWriter.writeAttribute("id",component.getClientId(facesContext), "id");
renderAttributes(facesContext,component,(List) component.getAttributes().get("annotatedAttributes"));
// Render oncommand attribute by calling triggerAction
if(component.getAttributes().get("oncommand") == null){
ActionSource actionSource = (ActionSource) component;