final ModifiableReportParameterDefinition mdef = (ModifiableReportParameterDefinition) definition;
if (oldElement != null)
{
mdef.removeParameterDefinition(position);
clearParameterValues(report);
report.notifyNodeChildRemoved(oldElement);
}
if (newElement != null)
{
mdef.addParameterDefinition(position, newElement);
clearParameterValues(report);