if (parameters != null && parameters.length > 0)
{
for (int i = 0; i < parameters.length; i++)
{
String parameterName = parameters[i];
portletEntry.removeParameter(parameterName);
}
Registry.addEntry(registry, portletEntry);
clearUserData(rundata);
}