Ugandan judge convicted