code: protected void renderAttributes(int type, AbstractRenderAppender sb, AbstractAttributeState state, boolean doubleQuote)
      {
          HashMap map = null;
          switch (type) {
              case AbstractHtmlState.ATTR_JAVASCRIPT:
                  assert(state instanceof AbstractHtmlState) : "ATTR_JAVASCRIPT requires a AbstractHtmlState instance";
                  AbstractHtmlState htmlState = (AbstractHtmlState) state;
                  map = htmlState.getEventMap();
                  break;
              default:
                  super.renderAttributes(type, sb, state, doubleQuote);
                  return;
          }
          renderGeneral(map, sb, doubleQuote);
      }
docs: Render all of the attributes defined in a map and return the string value.  The attributes
  are rendered with in a name="value" style supported by XML.
  @param type an integer key indentifying the map