code: private void addCoordinateArrays(Geometry geometry, List<Coordinate[]> coords) {
  		if (geometry.getGeometries() != null) {
  			for (Geometry child : geometry.getGeometries()) {
  				addCoordinateArrays(child, coords);
  			}
  		} else if (geometry.getCoordinates() != null) {
  			coords.add(geometry.getCoordinates());
  		}
  	}
docs: ------------------------------------------------------------------------