class DmaapConditionalSender {

    public void send(final VnfLcmOperationOccurrenceNotification notification) {
        final String href = notification.getLinks().getVnfInstance().getHref();
        DmaapEvent dmaapEvent = null;

        switch (notificationVnfFilterType) {
            case ALL:
                dmaapEvent = conditionalSend(true, notification, href);
                break;
            case AAI_CHECKED:
                dmaapEvent = conditionalSend(false, notification, href);
                break;
            case NONE:
                break;
            default:
                throw new IllegalArgumentException(
                        "The value of VnfNotificationFilterType is not supported: " + notificationVnfFilterType);
        }

        final String vnfInstanceId = notification.getVnfInstanceId();

        if (dmaapEvent == null) {
            logger.info("The info with the VNF id '{}' is not sent to DMaaP", vnfInstanceId);
        } else {
            dmaapService.send(dmaapEvent);
            logger.info("The info with the VNF id '{}' is sent to DMaaP", vnfInstanceId);
        }
    }

    public  DmaapConditionalSender(final ConfigProperties configProperties, final AaiConnection aaiConnection,
            final DmaapService dmaapService);

}