createBootstrap(); if (bootstrap != null){
String componentName = context.getComponentName(); try { container.deactivateComponent(componentName);
    public void uninstall() throws javax.jbi.JBIException {        // TODO: check component status        // the component must not be started and not have any SUs deployed        if (!installed) {            throw new DeploymentException("Component is not installed");        }        createBootstrap();        if (bootstrap != null){            bootstrap.onUninstall();        }        String componentName = context.getComponentName();        container.deactivateComponent(componentName);        installed = false;        if (bootstrap != null){            bootstrap.cleanUp();        }        ClassLoader cl = bootstrap.getClass().getClassLoader();        if (cl instanceof DestroyableClassLoader) {            ((DestroyableClassLoader) cl).destroy();        } else {            ClassLoaderUtil.destroy(cl);        }        // TODO: destroy component class loader        bootstrap = null;        context = null;        System.gc();        container.getEnvironmentContext().removeComponentRootDirectory(componentName);    }