// 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 requests (eg, 'GET /_control/requests/<index>')
 */
@SuppressWarnings("serial")
public class RequestServlet extends AbstractStubServlet {

    @Override
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        try {
            returnJson(response, service().getRequest(getId(request)));
// 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/RequestServlet.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 requests (eg, 'GET /_control/requests/<index>')
 */
@SuppressWarnings("serial")
public class RequestServlet extends AbstractStubServlet {

    @Override
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        try {
            returnJson(response, service().getRequest(getId(request)));
        } catch (NotFoundException e) {