This has real echoes of the Chinese Exclusion Acts of the 1880s.