* - position: the position of the component to delete
*/
public void doDelete(RunData data, Context context) throws Exception
{
JetspeedRunData jdata = (JetspeedRunData)data;
PortletSet customizedSet = (PortletSet)jdata.getCustomized();
int position = data.getParameters().getInt("position",-1);
Profile profile = jdata.getCustomizedProfile();
// ADDED for WML
//boolean isWML = (profile.getMediaType().equalsIgnoreCase("wml"));
if (customizedSet == null) return;
if (position > -1)
{
Portlets set = profile.getDocument()
.getPortletsById(customizedSet.getID());
if (set != null)
{
// first try explicit portlets position
for(int i=0; i < set.getPortletsCount(); i++)
{