public Pair<T, T> visit(final SwapSecurity swap) {
final FixedFloatVisitor fixedFloatVisitor = new FixedFloatVisitor();
final SwapLeg payLeg = swap.getPayLeg();
final SwapLeg receiveLeg = swap.getReceiveLeg();
final boolean payFixed = payLeg.accept(fixedFloatVisitor);
final boolean receiveFixed = receiveLeg.accept(fixedFloatVisitor);
T firstValue;
T secondValue;
if (payFixed && receiveFixed) {
firstValue = payLeg.accept(new FixedVisitor());
secondValue = receiveLeg.accept(new FixedVisitor());