final TabularType tabularType = new TabularType("waitingThreads", "Lists all threads waiting for a lock", lockType, indexNames);
final TabularDataSupport data = new TabularDataSupport(tabularType);
for (final Map.Entry<String, LockInfo> entry : map.entrySet()) {
final LockInfo info = entry.getValue();
final Object[] itemValues = {
entry.getKey(), info.getLockType(), info.getLockMode(), info.getId(),
info.getOwners(), info.getWaitingForRead(), info.getWaitingForWrite()
};
data.put(new CompositeDataSupport(lockType, itemNames, itemValues));
}
return data;
}