*/
public static BaseFaultType makeFault(Class faultClass,
String errMsg,
Throwable t) {
BaseFaultType fault = null;
try {
fault = (BaseFaultType) faultClass.newInstance();
final FaultHelper faultHelper = new FaultHelper(fault);
if (errMsg != null) {
faultHelper.addDescription(errMsg);
}
if (t != null) {
final BaseFaultType faultCause;
if (t instanceof BaseFaultType) {
faultCause = (BaseFaultType) t;
} else {
faultCause = FaultHelper.toBaseFault(t);
}