What to do with a captured pirate

When pirate attacks off the coast of Somalia surged last year, the world sent its navies to tackle the problem. But now that we are taking the pirates on, does anyone know what to do when we catch them?