Proper arrangements would have been made if the Prince from Spain had contacted the US with 72 hrs notice instead of 6 hrs. Should he have been treated the way he was, no.
But then again, TSA system is this "Everyone is a terrorists until we find no weapons". It sucks but it's the fact of the matter. Even screeners get repeatly screened in a day, of course not the same as everyone else aka shoes being the only real difference.
On a side note:
Letizia Ortiz is a very beauitful young lady