@Override public void endDocument() throws SAXException {
  if (resource != null) {
    resource.addAllResource(jsVector);
    for (    Object object : resource.getResourceSet()) {
      Resource r=(Resource)object;
      if (r.getResource() != null) {
        parser.setResource((Resource)r);
        parser.run();
        jsSet.add(parser.getResult());
      }
    }
  }
}

@ Override public void endDocument ( ) throws SAXException { if ( resource != null ) { resource . addAllResource ( jsVector ) ; for ( Object object : resource . getResourceSet ( ) ) { Resource r = ( Resource ) object ; if ( r . getResource ( ) != null ) { parser . setResource ( ( Resource ) r ) ; parser . run ( ) ; jsSet . add ( parser . getResult ( ) ) ; } } } }
event fired at the end of the document parse
