Today we send bad people to prison and we hope that they will get out reeducated, a thing that does not happen very often.
In the future technology will change brain content and connections so people become good without spending years in a real prison.
Virtual Reality will be used to test the changes, to see if the person is really changed in good or will continue to do bad things.