title: Field or property cannot be found on object of type 'org.springframework.beans.factory.config.BeanExpressionContext
body: <p>The following bean definition:</p>
  
  <pre><code>&lt;bean id="client" factory-bean="builder"
      factory-method="withConfiguration"&gt;
      &lt;constructor-arg type="java.lang.String"
          value="#{ ${domain} == 'prod' ? 
                  Base.${domain}.${realm}.rpt : Base.${domain}.${realm}}" /&gt;
  </code></pre>
  
  <p>fails with the following error:</p>
  
  <p><code>org.springframework.web.context.ContextLoader: Context initialization failed { org.springframework.beans.factory.BeanExpressionException: Expression parsing failed; nested exception is org.springframework.expression.spel.SpelEvaluationException: EL1008E:(pos 0): Field or property 'test' cannot be found on object of type 'org.springframework.beans.factory.config.BeanExpressionContext'</code></p>
  
  <p><em>${domain}</em> should evaluate to 'test'.
  What is wrong with the configuration?</p>