code: public static void main(String[] args) throws MalformedObjectNameException {
  		// We create some example Simons
  		Stopwatch stopwatch = SimonManager.getStopwatch("org.javasimon.jmx.example1");
  		Counter counter = SimonManager.getCounter("org.javasimon.jmx.example2");
  
  		// Do little measurement for stopwatch Simon ...
  		try (Split ignored = stopwatch.start()) {
  			Thread.sleep(632);
  		} catch (InterruptedException e) { /* do nothing */ }
  
  		// ... and few usage of counter Simon.
  		counter.increase(52);
  		counter.decrease(12);
  		counter.increase(18);
  
  		// Than, we register provided SimonManagerMXBean.
  		// SimonManagerMXBean is part of javasimon, but register method is client responsibility
  		// so look to it for more detail.
  		register();
  
  		// The following is client part of code.
  		// Because, this is same VM, we don't need to create JMXConnector object and
  		// than obtain MBeanServerConnection. Platform MBeanServer is a MBeanServerConnection
  		// already, so it's used.
  		// So we use JMX.newMXBeanProxy method to make JMX create new client proxy of SimonManagerMXBean
  		// for us.
  		SimonManagerMXBean simonManagerMXBean = JMX.newMXBeanProxy(ManagementFactory.getPlatformMBeanServer(),
  			new ObjectName("org.javasimon.jmx.example:type=Simon"), SimonManagerMXBean.class);
  
  		// Now, we can freely retrieve samples for counter and stopwatch example Simons
  		System.out.println("counter = " + simonManagerMXBean.getCounterSample("org.javasimon.jmx.example2"));
  		System.out.println("stopwatch = " + simonManagerMXBean.getStopwatchSample("org.javasimon.jmx.example1"));
  
  		// After all, it's good manner to clean up, so we unregister MXBean
  		unregister();
  	}
docs: Entry point of the example application.
  
  @param args command line arguments
  @throws MalformedObjectNameException probably never