@SuppressWarnings("unchecked")
public void setValue(Object context, Object value) throws EvaluationException {
Object result = getValue(context);
if (result == null) {
throw new EvaluationException(context.getClass(), collectionExpression.getExpressionString(),
"Unable to access collection value for expression '" + collectionExpression.getExpressionString()
+ "'", new IllegalStateException(
"The collection expression evaluated to a [null] reference"));
}
Assert.isInstanceOf(Collection.class, result, "Not a collection: ");