Preventing sexual abuse in detention is primarily a matter of management. The policies needed are, for the most part, straightforward: for example, considering characteristics that make an inmate especially vulnerable when deciding where to house him, such as homosexuality or a history of prior abuse.
That is an amazingly lulzy quote. It isn't just a case of management here and none of it is remotely simple.
The stuff later about housing different gender/sex inmates that go a bit beyond the standard straight M/F false dichotomy is alright though.
The cost of fixing this stuff is astronomical though. I am not saying it shouldn't be done, but the sad reality is that justifying the cost to the people in charge and the people they ultimately answer to (the public) is a very hard fight.
I don't understand why this is even remotely shocking though. It is an inherent flaw in the prison system that was highlighted in Zimbardo's Prison experiment at Stanford in 1971. So 40 years later HOLY SHIT normally reasonable completely perfectly functioning people that are put in places of power in a prison are easilly turned into abusive overlords but especially the way that prisoners do accept it to a degree. There is an amazing number of layers of control and repression in place in the prison system which inherently lends itself to abuse and control. The plight of the guard is that they feel backed into those corners of abuse and repression. A portion of them genuinely enjoy the results of being put into that position.
Suffice to say, people are fucked up and the answer is not solved "simply" with a managerial shift.
Edit - And of course some would argue that the Prison system works this way as designed. I don't think it is quite bad enough to say that it was designed to promote rape of prisoners by staff, but they are definitely designed to control the prisoners, make them fearful and impressionable. So yeah mission fucking accomplished.