container.getManagementContext().unregisterMBean(this);
container.getManagementContext().unregisterSystemService(this);
    public void shutDown() throws JBIException {        stop();        super.shutDown();        if (container != null && container.getManagementContext() != null) {            container.getManagementContext().unregisterMBean(this);        }    }