for(AnnotationMetaData amd : annotations)
{
Annotation ann = amd.getAnnotationInstance();
if(ann instanceof ManagementObjectClass)
{
ManagementObjectClass moc = (ManagementObjectClass) ann;
mocClass = moc.code();
log.debug("Saw ManagementObjectClass, "+mocClass+" for bean: "+attachment);
break;
}
}
}