switch (param.getWhichFault()) {
case 2:
throw new StringFault(param.getParam1());
case 3:
throw new ArrayOfFloat(param.getParam2().getValue());
default:
throw new EmptyPart();
}
switch (param.getWhichFault()) {
case 2:
throw new StringFault(param.getParam1());
case 3:
throw new ArrayOfString(param.getParam3().getValue());
default:
throw new FloatFault(param.getParam2());
}