HashMap<Class, ProbeProviderClassFileTransformer> transformers = new HashMap<Class, ProbeProviderClassFileTransformer>();
for (FlashlightProbe probe : probes) {
Class clz = probe.getProviderClazz();
ProbeProviderClassFileTransformer transformer = transformers.get(clz);
if (transformer == null) {
transformer = new ProbeProviderClassFileTransformer(clz);
transformers.put(clz, transformer);
}
try {
transformer.regProbe(probe);
}
catch (NoSuchMethodException ex) {
logger.severe(localStrings.getLocalString("bad.transform",
"MNTG0505:Error transforming Probe: {0}", ex));
}