class DefaultWebApplicationExtensionContext implements WebApplicationExtensionContext {

    @Override
    public void add(Class<? extends WebApplicationExtension> extension) {
        try {
            WebApplicationExtension instance = extension.getDeclaredConstructor().newInstance();
            instance.extend(this);
            extensions.add(instance);
            extensionClasses.add(extension);
        } catch (InstantiationException | IllegalAccessException | IllegalArgumentException | InvocationTargetException | NoSuchMethodException | SecurityException ex) {
            ex.printStackTrace();
        }
    }

    public  DefaultWebApplicationExtensionContext();

}