code: public Object endFeatureCollection(Object featureCollection) {
  		// ((JSONObject)featureCollection).put("type", "FeatureCollection");
  		Map a = new LinkedHashMap();
  		a.put("type", "FeatureCollection");
  		a.put("features", features);
  		// ((JSONObject)featureCollection).put("features", features);
  		//
  		// ((JSONObject) featureCollection).put("type", "FeatureCollection");
  
  		this.featureCollection = new org.json.JSONObject(a);
  
  		return this.featureCollection;
  	}
docs: {@inheritDoc}