class JmsMessageIndexer {

    public void sendMessageToIndexer(final IndexMessage message) {
        try {
            jmsTemplateForIndexing.send(messageCreatorFactory.createJmsMessageCreator(message));
            turnOnConnectionErrorLog();
        } catch (Exception e) {
            turnOffConnectionErrorLog(e);
        }
    }

}