If that's your friend then you can kinda have an idea of what he is and isn't capable of, ya know?
I mean so what if he's in trial, or if he's in jail. I know plenty of people who have been to jail, that doesn't change who they are.
If he told you he did it, then maybe you have to question your friendship, but if the courts tell you he did it, I think you should still stick by him.
Think about how many times someone has been falsely accused of something, you never really know unless the person tells you himself.
I think a real friend would stick by him now more than ever, because it's the people who are there for us when we are down, who are truly our friends.