// Allow Accept-parameters to override Accept-headers:
root = new AcceptParamFilter(c, root);
// Compress returned entities
Encoder encoder = new Encoder(c);
encoder.setMinimumSize(COMPRESSION_THRESHOLD);
encoder.setNext(root);
root = encoder;
// root = new RequestLogger(c, root);
return root;