private String resolveExpression(final String expression) {
if (!ADFContext.hasCurrent()) { // No context available, we are prob. in the design mode of JDev.
return null;
}
ADFContext adfCtxt = ADFContext.getCurrent();
Environment env = adfCtxt.getEnvironment();
Object ctxt = env == null ? null : env.getContext();
if (ctxt instanceof ServletContext) {
ServletContext sCtxt = (ServletContext) ctxt;
return sCtxt.getInitParameter(expression);
}