Map<String, ObjectAttribute> wholeAttrMap = new HashMap<String, ObjectAttribute>();
StringTokenizer st = new StringTokenizer(displayNames, "|");
MBeanService mbeanService = ServiceFactory.getMBeanService();
for (Object anExpression : exprList) {
Expression expression = (Expression) anExpression;
ServiceContext srvcContext = null;
ObjectAttribute objAttribute = null;
try {
srvcContext = Utils.getServiceContext(context, expression);
objAttribute = mbeanService.getObjectAttribute(srvcContext,
expression.getTargetName());
} finally {
if (srvcContext != null)
srvcContext.getServerConnection().close();
}
assert objAttribute != null;
assert objAttribute.getStatus() == ObjectAttribute.STATUS_OK;
if(attribRepWhole.equals(expression.toString()))
wholeAttrMap.put(st.nextToken(), objAttribute);