}
public void register(Component component) throws Exception {
ComponentNameSpace cns = new ComponentNameSpace(container.getName(), component.getName());
ComponentContextImpl context = new ComponentContextImpl(container, cns);
ComponentEnvironment env = new ComponentEnvironment();
env.setComponentRoot(new File(component.getRootDir()));
env.setInstallRoot(new File(component.getInstallDir()));
env.setWorkspaceRoot(new File(component.getWorkDir()));
context.setEnvironment(env);
container.activateComponent(null,
component.getComponent(),
component.getDescription(),