What happens if the detention is found to be lawful?