ObjectName objectName){
String template = name.getMonitoringMbeanNameTemplate();
if(template != null){
template = domain + ":" + template; //NOI18N
Mapping mapping = null;
String property = null;
String value = null;
Map keyValueMap = new HashMap();
for(int i=0; i<name.sizeMapping(); i++){
mapping = name.getMapping(i);
value = objectName.getKeyProperty(mapping.getRuntimeMbeanAttributeName());
property = mapping.getMonitoringMbeanAttributeValue();
//In case of web-modules, the name key vaule of runtime mbean
//object name is different from the one in monitoring mbean
//object name. In runtime mbean object name, the name
//key value is context + name. We need to account for this.