container.getManagementContext().registerSystemService(this, LifeCycleMBean.class);
container.getManagementContext().registerSystemService(this, EnvironmentContextMBean.class);
    public void init(JBIContainer container, String rootDirPath) throws JBIException {        this.container = container;        jbiRootDir = new File(rootDirPath, container.getName());        buildDirectoryStructure();        container.getManagementContext().registerSystemService(this, LifeCycleMBean.class);    }