class FastInfosetDecompressorProcessor extends ProcessorBase {

    @Override
    public void process(final WilmaHttpEntity entity) {
        if (isContentFISCompressed(entity)) {
            ByteArrayOutputStream compressedBody = fastinfosetDecompressor.decompress(entity.getInputStream());
            entity.setBody(compressedBody.toString());
        }
    }

}