}
else if (insertResult instanceof Expression)
{
final Expression insertExpression = (Expression) insertResult;
final int index = activeContext.getReportDefinition().getExpressions().indexOf(insertExpression);
undos.add(new ExpressionAddedUndoEntry(index, insertExpression));
}
else if (insertResult instanceof ParameterDefinitionEntry)
{
final ParameterDefinitionEntry insertParam = (ParameterDefinitionEntry) insertResult;
final ReportParameterDefinition definition = activeContext.getContextRoot().getParameterDefinition();