According to Jim

YouTube
S8 | E18 | Airdate: 06/02/2009
Jim is forced to stand trial in Heaven.