</BUG>
{
try
{
<BUG>ValueExpression vexp = new ValueExpression(context, parameter.getValue());

String value = Util.nullable(vexp.get(context, this), Object::toString);
if (! Util.isEmpty(value)) executeCheck.setParameter(parameter.getName(), value);
</BUG>
}

executeCheck.setName(command.getName());
executeCheck.setScript(checkCommand.resolveCheckScript());
CheckSavedState state = this.getSavedState();
if (state != null) executeCheck.setSavedState(state.getSavedState());
ExpressContext context = new DefaultContext(new BergamotEntityResolver());
for (Entry<String, Parameter> parameter : checkCommand.resolveCheckParameters().entrySet())
{
try
{
ValueExpression vexp = new ValueExpression(context, parameter.getValue().getValue());
String value = Util.nullable(vexp.get(context, this), Object::toString);
if (logger.isTraceEnabled()) logger.trace("Adding parameter: " + parameter.getKey() + " => " + value + " (" + parameter.getValue().getValue() + ")");
if (! Util.isEmpty(value)) executeCheck.setParameter(parameter.getKey(), value);
}
