You can set a security domain in a project. Follow these steps to specify the project security domain:
Right-click on a project and select Properties.
In the Category area, select Running (the green triangle).
Select Regular Execution and check the Security domain box. In this context regular execution means you are running in the emulator, as opposed to running OTA.
Select the domain from the drop-down menu.