// Path: ApplicationController.java
// public class ApplicationController {
//     private HashMap<String,Handler> handlerMap = new HashMap();
// 
//     public void handleRequest(String command, HashMap<String,Object> data){
//         Handler aCommandHandler = handlerMap.get(command);
//         if (aCommandHandler != null){
//             aCommandHandler.handleIt(data);
//         }
//     }
// 
//     public void mapCommand(String aCommand, Handler acHandler){
//         handlerMap.put(aCommand,acHandler);
//     }
// }
// 
// Path: Handler.java
// public interface Handler {
//     public void handleIt(HashMap<String, Object> data);
// }


import com.doing.more.java.appcontrol.ApplicationController;
import com.doing.more.java.appcontrol.Handler;
import ort.quickconnectfamily.json.JSONInputStream;
import ort.quickconnectfamily.json.JSONOutputStream;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.HashMap;
package com.doing.more.java;




@WebServlet(name = "JSONEchoService", urlPatterns = {"/json"})
public class JSONEchoServlet extends HttpServlet {
// Path: ApplicationController.java
// public class ApplicationController {
//     private HashMap<String,Handler> handlerMap = new HashMap();
// 
//     public void handleRequest(String command, HashMap<String,Object> data){
//         Handler aCommandHandler = handlerMap.get(command);
//         if (aCommandHandler != null){
//             aCommandHandler.handleIt(data);
//         }
//     }
// 
//     public void mapCommand(String aCommand, Handler acHandler){
//         handlerMap.put(aCommand,acHandler);
//     }
// }
// 
// Path: Handler.java
// public interface Handler {
//     public void handleIt(HashMap<String, Object> data);
// }


// Path: JSONEchoServlet.java
import com.doing.more.java.appcontrol.ApplicationController;
import com.doing.more.java.appcontrol.Handler;
import ort.quickconnectfamily.json.JSONInputStream;
import ort.quickconnectfamily.json.JSONOutputStream;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.HashMap;

package com.doing.more.java;




@WebServlet(name = "JSONEchoService", urlPatterns = {"/json"})
public class JSONEchoServlet extends HttpServlet {
    private ApplicationController theAppController = new ApplicationController();