aws-serverless-java-container-core/src/main/java/com/amazonaws/serverless/proxy/internal/servlet/AwsAsyncContext.java [131:137]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public <T extends AsyncListener> T createListener(Class<T> aClass) throws ServletException {
        try {
            return aClass.newInstance();
        } catch (InstantiationException | IllegalAccessException e) {
            throw new ServletException(e);
        }
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



aws-serverless-java-container-core/src/main/java/com/amazonaws/serverless/proxy/internal/servlet/AwsServletContext.java [351:363]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public <T extends Servlet> T createServlet(Class<T> aClass) throws ServletException {
        /*log("Called createServlet: " + aClass.getName());
        log("Implemented frameworks are responsible for creating servlets");*/
        // TODO: This method introspects the given clazz for the following annotations: ServletSecurity, MultipartConfig,
        //  javax.annotation.security.RunAs, and javax.annotation.security.DeclareRoles. In addition, this method supports
        //  resource injection if the given clazz represents a Managed Bean. See the Java EE platform and JSR 299 specifications
        //  for additional details about Managed Beans and resource injection.
        try {
            return aClass.newInstance();
        } catch (InstantiationException | IllegalAccessException e) {
            throw new ServletException(e);
        }
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



