Refactoring JMX