class JmsIndexMessageCreator implements MessageCreator {

    @Override
    public Message createMessage(final Session session) throws JMSException {
        ObjectMessage message = session.createObjectMessage();
        message.setObject(indexMessage);
        return message;
    }

    public  JmsIndexMessageCreator(final IndexMessage message);

}