This call to isJoin is not needed here -- use "if (sendNodeChild instanceof AbstractJoinPlanNode) {"