// Path: core/src/main/java/au/com/sensis/stubby/service/NotFoundException.java
// @SuppressWarnings("serial")
// public class NotFoundException extends RuntimeException {
// 
//     public NotFoundException(String message) {
//         super(message);
//     }
//     
// }


import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import au.com.sensis.stubby.service.NotFoundException;
package au.com.sensis.stubby.servlet;




/*
 * Handles operations on responses (eg, 'GET /_control/responses/<index>')
 */
@SuppressWarnings("serial")
public class ResponseServlet extends AbstractStubServlet {

    @Override
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        try {
// Path: core/src/main/java/au/com/sensis/stubby/service/NotFoundException.java
// @SuppressWarnings("serial")
// public class NotFoundException extends RuntimeException {
// 
//     public NotFoundException(String message) {
//         super(message);
//     }
//     
// }


// Path: servlet/src/main/java/au/com/sensis/stubby/servlet/ResponseServlet.java
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import au.com.sensis.stubby.service.NotFoundException;

package au.com.sensis.stubby.servlet;




/*
 * Handles operations on responses (eg, 'GET /_control/responses/<index>')
 */
@SuppressWarnings("serial")
public class ResponseServlet extends AbstractStubServlet {

    @Override
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        try {
            returnJson(response, service().getResponse(getId(request)));