code: @Override
      public int getAttributeIndex(String namespaceURI, String localName)
      {
          // Note: cut'n pasted from "getAttributeInfo()"
          if (mCurrToken != START_ELEMENT) {
              throw new IllegalStateException(ErrorConsts.ERR_STATE_NOT_STELEM);
          }
          return mElementStack.findAttributeIndex(namespaceURI, localName);
      }
docs: /*
  /////////////////////////////////////////////////////////
  TypedXMLStreamReader2 implementation, scalar attributes
  /////////////////////////////////////////////////////////