public void run() throws Exception {
        /* in a "real" application, the registration instance would probably be
         * saved in a field for subsequent unregistration */
        System.out.println("Running " + getClass());
        new MBeanRegistration(mbean).register();
        for (;;) {
            System.out.print('.');
            Thread.sleep(1000);
        }
    }