# Hardcoding policies

How to hardcode/overwrite/overload [policies](https://docs.tsnocode.com/books/policy-reference), making it impossible to change them at runtime.

Modify the context file (the xml-file in tomcats conf folder), eg.

```bash
nano /usr/share/tomcat/conf/Catalina/localhost/app.xml
```

Within th `Context` element in the xml-file add one `Parameter` element per policy that should be hardcoded/overwritten, eg.

```xml
<Parameter name="Policy.smtpTestMode" value="true"/>
```