That's probably more like attempting to use reverse psychology. The boy is too effeminate, so they dress him as a girl and then proceed to humiliate him in order to teach him a lesson to adapt his behaviour to minimise his femininity in future. It wasn't what made him effeminate in the first place.
Though I can see how if the supposed punishment backfired and caused him excitement instead of fear, or excitement mixed with fear, at the prospect of being seen as feminine that it might get all tangled up in his head as being the original cause of a desire and not the consequence.
Like Juno Roche, when the boys at her primary school called her a pansy, she just thought it was a pretty name and then adopted it for herself, without even seeing it as the insult it was originally intended as. http://www.pressreader.com/uk/diva-uk/20160401/282166470301643
You really can't behaviourally condition people out of these things, no matter what you try, and attempting to do so just causes them unnecessary pain and confusion.
That's kind of why I hate this one: https://transresearch.info/2014/08/01/gender-dysphoria-in-aspergers-syndrome-a-caution-review/
..when he was in Year 11 had worn his hair long and taken the name Marjory. He asked for hormonal transition but two psychiatrists and an endocrinologist wisely withheld hormones. He claimed that from the age of two years he had felt he was a girl. He would get emotional over trivial things – which he said was a female trait! At nine he was cross dressing, which continued into his teens.
He had always felt ‘different’ and over many years had a preoccupation with the ‘Star Wars’ saga and making model spaceships. At the age of 19 years he consulted me because of confusion over gender and sexuality – presenting, nonetheless, as quite a well-adjusted young man. Two years later he was able to say that ‘all that transgender business’ had been a waste of time and had put him a couple of years behind his mates in sexual development. Not long ago, three years after ending treatment, he told me he was married, expecting a child.
Because chances are he's still like me, still at least secretly 'crossdreaming', and maybe got married more out of fear than out of actually having the capacity to really act like a man. But evidently this is seen as a more positive outcome, when perhaps if he had been given the hormone treatment, without the implicit expectation that he would first suddenly get all into makeup and forget all about Star Wars, it might have cleared up a lot of his Asperger's symptoms and left him feeling much better over all.
As far as the doctor is concerned he's a good example of why treatment should be withheld from those presenting with Asperger's, as far as his wife and future children are concerned, maybe not so much, and what will he be feeling like when he's 50+?
I mean, I might have said 'All that transgender business had been a waste of time' when I was 22-25 too, when I felt like I was starting to get more of a grip on life, but then it came back and hit me over the head when I was 30 anyway, by which time physically the situation was not as good as when I was 17-19.