String zipHeaderValue = headers.getStringHeaderValue(HeaderParameterNames.ZIP);
if (zipHeaderValue != null)
{
AlgorithmFactoryFactory factoryFactory = AlgorithmFactoryFactory.getInstance();
AlgorithmFactory<CompressionAlgorithm> zipAlgFactory = factoryFactory.getCompressionAlgorithmFactory();
CompressionAlgorithm compressionAlgorithm = zipAlgFactory.getAlgorithm(zipHeaderValue);
data = compressionAlgorithm.decompress(data);
}
return data;
}