public static void invokeProbeAfter(Object returnValue, int id,
Object states) {
FlashlightProbe probe = probeMap.get(id);
if (probe != null) {
try {
probe.fireProbeAfter(returnValue, (ArrayList<FlashlightProbe.ProbeInvokeState>)states);
} catch (ClassCastException e) {
// Make sure the state we got was really ok, internal error if that happens
}
}
}