if (!namespaceAware)
if (!namespaceAware || namespaces.isEmpty())
  public int getNamespaceCount()  {    if (!namespaceAware)      return 0;    switch (event)      {      case XMLStreamConstants.START_ELEMENT:      case XMLStreamConstants.END_ELEMENT:        LinkedHashMap ctx = (LinkedHashMap) namespaces.getFirst();        return ctx.size();      default:        return 0;      }  }