try {
if(log.isInfoEnabled()) {
log.info(String.format("Publishing tenant removed event: [tenant-id] %d", tenantId));
}
TenantRemovedEvent event = new TenantRemovedEvent(tenantId);
EventPublisher eventPublisher = EventPublisherPool.getPublisher(Constants.TENANT_TOPIC);
eventPublisher.publish(event);
}
catch (Exception e) {
log.error("Could not publish tenant removed event");
}
}