Heated exchange over legal rights as lawyers battle to have refugee claimant let out of jail