code: @Override
      public String getLocalName(int index) {
          if (index < 0 || index >= attributesList.size()) {
              return null;
          }
          Attribute attr = attributesList.get(index);
          // FIXME attr.localName is sometimes null, why?
          if (namespaces && attr.localName == null) {
              // XXX fix this here for now
              int ci = attr.name.indexOf(':');
              attr.localName = (ci == -1) ? attr.name
                      : attr.name.substring(ci + 1);
          }
          return (attr.localName == null) ? "" : attr.localName;
      }
docs: <b>SAX2 Attributes</b> method (don't invoke on parser);