class ResponseMessageRouter implements NotificationResponseMessageSender {

    @Override
    public void send(final ResponseMessage responseMessage, final String messageType) {

        final IntegrationType integrationType = this.getIntegrationType(responseMessage.getDeviceIdentification());

        switch (integrationType) {
        case BOTH:
            this.kafkaResponseMessageSender.send(responseMessage, messageType);
            this.webServiceResponseMessageSender.send(responseMessage, messageType);
            break;
        case KAFKA:
            this.kafkaResponseMessageSender.send(responseMessage, messageType);
            break;
        default:
            this.webServiceResponseMessageSender.send(responseMessage, messageType);
        }
    }

}