String[] params = PrinterUtil.getParams(propertyName);
List<Header> headers = new ArrayList<Row.Header>();
if (objectNameSet == null || objectNameSet.isEmpty())
{
for (String param : params)
headers.add(new Header(param, param));
}
else
{
Iterator<ObjectName> it = objectNameSet.iterator();
MBeanInfo info = connection.getMBeanInfo(it.next());
MBeanAttributeInfo[] attrInfos = info.getAttributes();
for (String param : params)
{
boolean found = false;
for (MBeanAttributeInfo attrInfo : attrInfos)
{
if (attrInfo.getName().equals(param))
{
headers.add(new Header(param, attrInfo.getDescription(), PrinterUtil.getNote(propertyName, param)));
found = true;
break;
}
}
if (!found)