How to use util constants in router expression?
<p>I've defined these util constants in my context.</p>

<pre><code>&lt;util:constant id="foo1" static-field="com.marvel.avengers.hulc.util.MyExampleConstants.FOO1"/&gt;
&lt;util:constant id="foo2" static-field="com.marvel.avengers.hulc.util.MyExampleConstants.FOO2"/&gt;
&lt;util:constant id="foo3" static-field="com.marvel.avengers.hulc.util.MyExampleConstants.FOO3"/&gt;
</code></pre>

<p>I've tried using foo1 constant in my router expression, but it looks like #{foo1} is a bean id and not its value.</p>

<pre><code>&lt;int:router input-channel="channelABC" expression=" !payload.avengersVO.powType.equals(#{foo1}) 
        and !payload.avengersVO.powType.equals(#{foo2}) 
        and !payload.avengersVO.powType.equals(#{foo3}) ? 'flowEndpoint' : 'civilWarsChan'"/&gt;
</code></pre>

<p>On the other hand I could use this in an expression but want to see if I could make use of the constants that I've defined in the router expression:</p>

<pre><code>&lt;int:router input-channel="channelABC" expression=" !payload.avengersVO.powType.equals(T(com.marvel.avengers.hulc.util.MyExampleConstants).FOO1) 
    and !payload.avengersVO.powType.equals(T(com.marvel.avengers.hulc.util.MyExampleConstants).FOO2) 
    and !payload.avengersVO.powType.equals(T(com.marvel.avengers.hulc.util.MyExampleConstants).FOO3) ? 'flowEndpoint' : 'civilWarsChan'"/&gt;
</code></pre>

<p>Can someone help me to know, how to get value from this bean in router expression.
Thanks in advance.</p>