if (compressor != null && getCompress())
{
try
{
String nonCompressed = new String(processedResponse, "UTF-8");
return compressor.compress(nonCompressed).getBytes();
}
catch (Exception e)
{
log.error("Error while filtering content", e);
return processedResponse;