Configuring and using Code Domains