class JmsResponseMessageCreator implements MessageCreator {

    @Override
    public Message createMessage(final Session session) throws JMSException {
        ObjectMessage message = session.createObjectMessage();
        message.setObject(wilmaHttpResponse);
        message.setBooleanProperty("bodyDecompressed", bodyDecompressed);
        return message;
    }

    public  JmsResponseMessageCreator(final WilmaHttpResponse wilmaHttpResponse, final boolean bodyDecompressed);

}