throws NullPointerException
{
MBeanServer server = ManagementFactory.getPlatformMBeanServer();
JmxDomainRepresentation domain = new JmxDomainRepresentation(
domainName );
for ( Object objName : server.queryNames( null, null ) )
{
if ( objName.toString().startsWith( domainName ) )
{
domain.addBean( (ObjectName) objName );
}
}
String entity = JsonRenderers.DEFAULT.render( domain );