if (registry == null || mapping == null) {
return;
}
final Servlet servlet = ((ServletListener) registry.removeHttpListener(pattern(wc.getContextRoot(), mapping))).getDelegate();
servlet.destroy();
wc.destroy(servlet);
}
public static boolean addFilter(final String classname, final WebContext wc, final String mapping, final FilterConfig config) {
final HttpListenerRegistry registry = SystemInstance.get().getComponent(HttpListenerRegistry.class);