src/main/java/ch/rasc/embeddedtc/EmbeddedTomcat.java
public EmbeddedTomcat addContextEnvironment(String name, String value, String type) {
		final ContextEnvironment env = new ContextEnvironment();
		env.setType(type);
		env.setName(name);
		env.setValue(value);
		addContextEnvironment(env);
		return this;
	}
public EmbeddedTomcat addContextEnvironment(String name, String value, String type) {
		final ContextEnvironment env = new ContextEnvironment();
		env.setType(type);
		env.setName(name);
		env.setValue(value);
		addContextEnvironment(env);
		return this;
	}
Convenient method for adding a context environment to the embedded Tomcat. Creates
a <code>ContextEnvironment</code> object and adds it to the list of the context
environments.

<p>
Example:<br>
Tomcat context xml file

<pre>
&lt;Environment name="aparam"
value="test"
type="java.lang.String"
override="false"/&gt;
</pre>

Programmatic way:

<pre>
embeddedTomcat.addContextEnvironment(&quot;aparam&quot;, &quot;test&quot;, &quot;java.lang.String&quot;);
</pre>

@param name name of the context environment
@param value value of the context environment
@param type type of the context environment
@return The embedded Tomcat

@see ContextEnvironment
@see NamingResources#addEnvironment(ContextEnvironment)
@see EmbeddedTomcat#addContextEnvironment(ContextEnvironment)
@see EmbeddedTomcat#addContextEnvironmentString(String, String)