detention joi