The commander himself was alarmed when he realized that he had put Paul, a Roman citizen, in chains.30 The commander wanted to find out exactly why Paul was being accused by the Jews. So the next day he released him and ordered the chief priests and all the members of the Sanhedrin to assemble. Then he brought Paul and had him stand before them. Paul looked straight at the Sanhedrin and said, “My brothers, I have fulfilled my duty to God in all good conscience to this day.” 2 At this the high priest Ananias ordered those standing near Paul to strike him on the mouth. 3 Then Paul said to him, “God will strike you, you whitewashed wall! You sit there to judge me according to the law, yet you yourself violate the law by commanding that I be struck!”4 Those who were standing near Paul said, “How dare you insult God’s high priest!”5 Paul replied, “Brothers, I did not realize that he was the high priest; for it is written: ‘Do not speak evil about the ruler of your people.’”6 Then Paul, knowing that some of them were Sadducees and the others Pharisees, called out in the Sanhedrin, “My brothers, I am a Pharisee, descended from Pharisees. I stand on trial because of the hope of the resurrection of the dead.” 7 When he said this, a dispute broke out between the Pharisees and the Sadducees, and the assembly was divided. 8 (The Sadducees say that there is no resurrection, and that there are neither angels nor spirits, but the Pharisees believe all these things.)9 There was a great uproar, and some of the teachers of the law who were Pharisees stood up and argued vigorously. “We find nothing wrong with this man,” they said. “What if a spirit or an angel has spoken to him?” 10 The dispute became so violent that the commander was afraid Paul would be torn to pieces by them. He ordered the troops to go down and take him away from them by force and bring him into the barracks. Acts 21:29-22:10
Did Paul know that was the high priest, and he was passively aggressively calling him out for not behaving like one or did he legitimately not know, maybe because of his eyesight being bad? I tend to go with the former for two reasons - one because I'm passive aggressive and that's how I would call out the high priest, and two, because Paul really seems to be on his game here. He about gets the Pharisees who wanted to rid the earth of him, to let him go because he agreed with them on a theological stance that set the Sadducees off. Paul's vision was not too bad to see a room divided between Pharisees and Sadducees and instantaneously concocted a plan to divide the room.
Nothing divides Christians more than doctrinal issues but yet they are valuable because there is a resurrection of the dead and the Sadducees were wrong. Paul says to the Corinthian church,
"I hear that when you come together as a church, there are divisions among you, and to some extent I believe it. 19 No doubt there have to be differences among you to show which of you have God’s approval."
He is actually condoning divisions based on the truth. I had to leave a PCA church because I couldn't accept "limited atonement" which I felt was a hill to die on. The interesting thing is that the Pharisees were so invested in their pet doctrine that they were willing to align themselves with someone who at the very core they disagreed with. We see that happening as evangelicals embrace Catholics because of their strong pro-life stand. Bible believing Christians might welcome Mormons into the family because of their conservative values and traditional family approach (now that they got a revelation that polygamy is wrong)
This passage confirms in my mind that divisions are necessary - denominations aren't of the devil, and that ecumenicalism is dangerous because it marries you to people that you are unequally yoked with. I know this whole topic takes some individualization and boundary definition. For example, Billy Graham took heat for putting Catholics on the podium with him and letting them lead in prayer. His point was that Catholics need to hear the gospel, too and whatever I can do to bring them in and break down the barriers to the gospel, I'm going to do. Was he right or wrong? Was he validating them or wooing them? I have a hard time ever disagreeing with Billy Graham.