} else if (value instanceof FixedPaymentMatrix) {
final FixedPaymentMatrix previousMatrix = (FixedPaymentMatrix) currentTotal;
final FixedPaymentMatrix currentMatrix = (FixedPaymentMatrix) value;
return previousMatrix.add(currentMatrix);
} else if (value instanceof FloatingPaymentMatrix) {
final FloatingPaymentMatrix previousMatrix = (FloatingPaymentMatrix) currentTotal;
final FloatingPaymentMatrix currentMatrix = (FloatingPaymentMatrix) value;
return previousMatrix.add(currentMatrix);
} else if (value instanceof MulticurveSensitivity) {
final MulticurveSensitivity previousSensitivity = (MulticurveSensitivity) currentTotal;
final MulticurveSensitivity currentSensitivity = (MulticurveSensitivity) value;
return previousSensitivity.plus(currentSensitivity);