11561157115811591160116111621163
*/ public NamespaceContext getNamespaceContext() { if (state==SWITCHED){ return parser.getNamespaceContext(); } return new MapBasedNamespaceContext( currentEvent == END_DOCUMENT ? Collections.EMPTY_MAP : getAllNamespaces(lastNode)); }