container.getManagementContext().registerSystemService(this,LifeCycleMBean.class);
container.getManagementContext().registerSystemService(this, AutoDeploymentServiceMBean.class);
    public void init(JBIContainer container) throws JBIException{        this.container=container;        this.environmentContext=container.getEnvironmentContext();        this.installationService=container.getInstallationService();        this.deploymentService=container.getDeploymentService();        //clean-up tmp directory        if(environmentContext.getTmpDir()!=null){            FileUtil.deleteFile(environmentContext.getTmpDir());        }                initializeFileMaps();        container.getManagementContext().registerSystemService(this,LifeCycleMBean.class);    }