public void removeServletModel(final ServletModel model) {
		servletLock.writeLock().lock();
		try {
            deassociateBundle(model.getContextModel().getVirtualHosts(), model.getContextModel().getBundle());
            for (String virtualHost:resolveVirtualHosts(model)) {
                if (model.getAlias() != null) {
                        aliasMapping.get(virtualHost).remove(getFullPath(model.getContextModel(), model.getAlias()));
                }
                if (model.getServlet() != null) {
                        servlets.get(virtualHost).remove(model.getServlet());
                }
                if (model.getUrlPatterns() != null) {
                        for (String urlPattern : model.getUrlPatterns()) {
                                servletUrlPatterns.get(virtualHost).remove(getFullPath(model.getContextModel(), urlPattern));
                        }
                }
            }
		} finally {
			servletLock.writeLock().unlock();
		}
	}
public void removeServletModel ( final ServletModel model ) { servletLock . writeLock ( ) . lock ( ) ; try { deassociateBundle ( model . getContextModel ( ) . getVirtualHosts ( ) , model . getContextModel ( ) . getBundle ( ) ) ; for ( String virtualHost : resolveVirtualHosts ( model ) ) { if ( model . getAlias ( ) != null ) { aliasMapping . get ( virtualHost ) . remove ( getFullPath ( model . getContextModel ( ) , model . getAlias ( ) ) ) ; } if ( model . getServlet ( ) != null ) { servlets . get ( virtualHost ) . remove ( model . getServlet ( ) ) ; } if ( model . getUrlPatterns ( ) != null ) { for ( String urlPattern : model . getUrlPatterns ( ) ) { servletUrlPatterns . get ( virtualHost ) . remove ( getFullPath ( model . getContextModel ( ) , urlPattern ) ) ; } } } } finally { servletLock . writeLock ( ) . unlock ( ) ; } }
Unregisters a servlet model.

@param model servlet model to unregister