// Path: src/main/java/org/nextrtc/examples/videochat_with_rest/domain/handler/common/ConversationHandler.java
// public abstract class ConversationHandler implements NextRTCHandler {
// 
//     @Override
//     public final void handleEvent(NextRTCEvent event) {
//         event.conversation().ifPresent(conversation -> handleEvent(conversation, event));
//     }
// 
//     protected abstract void handleEvent(NextRTCConversation conversation, NextRTCEvent event);
// }
// 
// Path: src/main/java/org/nextrtc/examples/videochat_with_rest/service/DestroyConversationService.java
// @Service
// @Transactional
// public class DestroyConversationService {
// 
//     @Autowired
//     private ConversationRepository conversationRepository;
// 
//     public void execute(String roomName) {
//         conversationRepository.getByConversationName(roomName).destroy();
//     }
// }


import org.apache.log4j.Logger;
import org.nextrtc.examples.videochat_with_rest.domain.handler.common.ConversationHandler;
import org.nextrtc.examples.videochat_with_rest.service.DestroyConversationService;
import org.nextrtc.signalingserver.api.annotation.NextRTCEventListener;
import org.nextrtc.signalingserver.api.dto.NextRTCConversation;
import org.nextrtc.signalingserver.api.dto.NextRTCEvent;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import static org.nextrtc.signalingserver.api.NextRTCEvents.CONVERSATION_DESTROYED;
package org.nextrtc.examples.videochat_with_rest.domain.handler;



@Component
@NextRTCEventListener(CONVERSATION_DESTROYED)
public class ConversationDestroyedHandler extends ConversationHandler {

    private static final Logger log = Logger.getLogger(ConversationDestroyedHandler.class);
    @Autowired
    private DestroyConversationService service;

// Path: src/main/java/org/nextrtc/examples/videochat_with_rest/domain/handler/common/ConversationHandler.java
// public abstract class ConversationHandler implements NextRTCHandler {
// 
//     @Override
//     public final void handleEvent(NextRTCEvent event) {
//         event.conversation().ifPresent(conversation -> handleEvent(conversation, event));
//     }
// 
//     protected abstract void handleEvent(NextRTCConversation conversation, NextRTCEvent event);
// }
// 
// Path: src/main/java/org/nextrtc/examples/videochat_with_rest/service/DestroyConversationService.java
// @Service
// @Transactional
// public class DestroyConversationService {
// 
//     @Autowired
//     private ConversationRepository conversationRepository;
// 
//     public void execute(String roomName) {
//         conversationRepository.getByConversationName(roomName).destroy();
//     }
// }


// Path: src/main/java/org/nextrtc/examples/videochat_with_rest/domain/handler/ConversationDestroyedHandler.java
import org.apache.log4j.Logger;
import org.nextrtc.examples.videochat_with_rest.domain.handler.common.ConversationHandler;
import org.nextrtc.examples.videochat_with_rest.service.DestroyConversationService;
import org.nextrtc.signalingserver.api.annotation.NextRTCEventListener;
import org.nextrtc.signalingserver.api.dto.NextRTCConversation;
import org.nextrtc.signalingserver.api.dto.NextRTCEvent;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import static org.nextrtc.signalingserver.api.NextRTCEvents.CONVERSATION_DESTROYED;

package org.nextrtc.examples.videochat_with_rest.domain.handler;



@Component
@NextRTCEventListener(CONVERSATION_DESTROYED)
public class ConversationDestroyedHandler extends ConversationHandler {

    private static final Logger log = Logger.getLogger(ConversationDestroyedHandler.class);
    @Autowired
    private DestroyConversationService service;

    @Override