Hardcoding policies
How to hardcode/overwrite aoverwrite/overload policypolicies, making it impossible to change itthem at runtime.
Modify the context file (the xml-file in tomcats conf folder), eg.
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.
<Parameter name="Policy.smtpTestMode" value="true"/>