class DefaultWebApplication implements WebApplication {

    @Override
    public ServletRegistration.Dynamic addJspFile(String servletName, String jspFile) {
        if (status != SETUP && status != INITIALIZED_DECLARED) {
            throw new IllegalStateException("Illegal to add JSP file because state is not SETUP");
        }

        if (isEmpty(servletName)) {
            throw new IllegalArgumentException("Servlet name cannot be null or empty");
        }

        return jspManager.addJspFile(this, servletName, jspFile);
    }

    public  DefaultWebApplication();

}