class Base64DecoderProcessor extends ProcessorBase {

    @Override
    public void process(final WilmaHttpEntity entity) throws ApplicationException {
        if (isBinaryContent(entity)) {
            String responseBody = entity.getBody();
            byte[] result = decompressor.decode(responseBody);
            entity.setInputStream(getInputStream(result));
        }
    }

}