code: public static HttpHandler configureCompression(Compression compression,
  			HttpHandler httpHandler) {
  		if (compression == null || !compression.getEnabled()) {
  			return httpHandler;
  		}
  		ContentEncodingRepository repository = new ContentEncodingRepository();
  		repository.addEncodingHandler("gzip", new GzipEncodingProvider(), 50,
  				Predicates.and(getCompressionPredicates(compression)));
  		return new EncodingHandler(repository).setNext(httpHandler);
  	}
docs: Optionally wrap the given {@link HttpHandler} for HTTP compression support.
  @param compression the HTTP compression configuration
  @param httpHandler the HTTP handler to wrap
  @return the wrapped HTTP handler if compression is enabled, or the handler itself