*/
public static AttributeHandler buildAttrHandler(Element CMM_MbeanDescriptor,
MappingQueryService mapping, String asAttr, String cmmAttr)
throws Exception {
AttributeHandler handler = null;
try {
Map handlerProperties = mapping.getHandlerAttributeMappings(
CMM_MbeanDescriptor, asAttr, cmmAttr);
String handlerName = mapping.getAttributeHandlerClass(
CMM_MbeanDescriptor, asAttr, cmmAttr);
Class c = Class.forName(handlerName);
handler = (AttributeHandler) c.newInstance();
handler.setCMM_MBeanDescriptor(CMM_MbeanDescriptor);
handler.setMappingQueryService(mapping);
handler.setHandlerProperties(handlerProperties);
} catch (Exception e) {
LogDomains.getLogger().log(Level.WARNING,
"Error while creating attribute handler", e);