public TestRpcLitFaultResponse testRpcLitFault(String faultType)
throws BadRecordLitFault, NoSuchCodeLitFault {
BadRecordLit badRecord = new BadRecordLit();
badRecord.setReason("BadRecordLitFault");
if (faultType.equals(BadRecordLitFault.class.getSimpleName())) {
throw new BadRecordLitFault("TestBadRecordLit", badRecord);
}
if (faultType.equals(NoSuchCodeLitFault.class.getSimpleName())) {
ErrorCode ec = new ErrorCode();
ec.setMajor((short)1);
ec.setMinor((short)1);