I have been looking around and have not found much on conditional logic I can place into the context xml that would optionally add load-time-weaver.

For example, in WebSphere I want the line commented out

<!-- uncomment the following line to run in Tomcat locally
<context:load-time-weaver/>
-->

Yet, in Tomcat (i.e. our local development), I want the line active

<context:load-time-weaver/>


Is there a means to write something like

<if condition=${tomcatServer}>
<context:load-time-weaver/>
</if>

This is the ONLY line change in the entire config. Note: Please assume I would write something that would set the ${tomcatServer} variable



Any suggestions?