if (port!=null) portsV.removeElement(port);
if (port==null) return;  portsV.removeElement(port);
public void removePort(String name){	VDBPort port = (VDBPort)ports.remove(name);	if (port!=null)		portsV.removeElement(port);	ComposedAction ca = new ComposedAction();	// remove visible rep.	VisibleObject portVisibleObj = port.getVisibleObject();	if (portVisibleObj!=null)	{		portVisibleObj.destroy();		ca.addAction(new com.cosylab.vdct.undo.DeleteAction(portVisibleObj));		com.cosylab.vdct.events.CommandManager.getInstance().execute("RepaintWorkspace");	}	ca.addAction(new DeleteTemplatePortAction(this, port));		UndoManager.getInstance().addAction(ca);		regeneratePortsID();	InspectorManager.getInstance().updateObject(this);/*	updateTemplateFields();	unconditionalValidation();	com.cosylab.vdct.events.CommandManager.getInstance().execute("RepaintWorkspace");*/}