support for mBean servers that rewrite the supplied ObjectName upon registration
Formatting fixes
Merge pull request #549 from tvleminckx/issue-jmx-542

Closes #542