code: public void end() {
  		// if (((ArrayList) this.featureCollection).size() == 0) {
  		this.endNewElement();
  		// }
  		contentHandler.endFeatureCollection(this.featureCollection);
  		if (writerContentHandler != null)
  			geoJSON = writerContentHandler.endFeatureCollection(geoJSON);
  	}
docs: Calls the event {@link JPEContentHandler#endFeatureCollection(Object)} of
  both {@link JPEContentHandler} set through
  {@link #setJPEParseContentHandler(JPEContentHandler)} and
  {@link #setJPEWriteContentHandler(JPEContentHandler)}