This sort of heart-burning is the result of compartmentalizing people on the basis of caste, creed, colour, religion, etc. A criminal is a criminal irrespective of his religion or other affinities. Those who have committed crime needs to be punished (whether the perpetuators of the incident in the train or its after-math).