Let's not duplicate this code.  Instead let's move this class into a "common" project on which both the jmx-loader and jmx-extractor can depend.