James McDonald was set upon the same day he was due to go on trial over a prison attack.