// handle fault injection
String faultName = (String)p.get("name");
if (faultName == null)
faultName = target;
String faultSelector = (String)p.get("selector");
FaultInjection fi = FaultInjection.getInjection();
boolean faultOn = true;
// ok only turn off fault injection if no name pair
if (debugStr != null && debugStr.equalsIgnoreCase("false")) {
if (faultName == null) {
fi.setFaultInjection(false);
} else {
fi.unsetFault(faultName);
}
} else {
fi.setFaultInjection(true);
if (faultName != null) {
try {
fi.setFault(faultName, faultSelector, p);
} catch (Exception ex) {
status = Status.ERROR;
msg = "Bad Selector " + faultSelector;
}
}