Applies the QualifiedAttributeValueExp to an MBean.
try {
MBeanServer server = QueryEval.getMBeanServer();
String v = server.getObjectInstance(name).getClassName();
if (v.equals(className)) {
return super.apply(name);
}
throw new InvalidApplicationException("Class name is " + v +
", should be " + className);
} catch (Exception e) {
throw new InvalidApplicationException("Qualified attribute: " + e);
/* Can happen if MBean disappears between the time we
construct the list of MBeans to query and the time we
evaluate the query on this MBean, or if
getObjectInstance throws SecurityException. */
}