final Parameter parameter ) {
Object value = parameters.get(parameter.getName());
if (value != null) {
if (value instanceof Expression) {
// The parameter is itself another Expression
final Expression newExpression = (Expression) parameters.get(parameter.getName());
final Expression wrappedExpression = new Expression(
newExpression.getExpression(),
this);
result = wrappedExpression.evaluate();
}
else {
result = value;
}
}