I think its relevant that his name is "Mr Aditya Singh". This might give a clue to his ethnicity and therefore how dangerous the judge (stupidly) perceives him to be.
I hope you are wrong that his ethnicity has anything to do with his treatment. Not least because Singh is a traditionally Sikh name making the implication doubly stupid.