components.remove(externalComponent.getComponent());
    public void removeComponent(String subdomain) throws ComponentException {        ExternalComponent externalComponent = componentsByDomain.remove(subdomain);        components.remove(externalComponent.getComponent());        if (externalComponent != null) {            externalComponent.shutdown();        }    }