long threadID = Thread.currentThread().getId();
ThreadInfo threadInfo = mbean.getThreadInfo(threadID, 3);
// Test ThreadInfo MetaValue wrap/unwrap
MetaValueFactory metaValueFactory = MetaValueFactory.getInstance();
CompositeDataMetaValueBuilder builder = new CompositeDataMetaValueBuilder();
builder.setMetaValueFactory(metaValueFactory);
metaValueFactory.setBuilder(CompositeData.class, builder);
metaValueFactory.setBuilder(CompositeDataSupport.class, builder);
MetaValue threadInfoMV = metaValueFactory.create(threadInfo);
log.debug("ThreadInfo.MV: "+threadInfoMV);