//first check that the mapped CP is still part of the current design
if(!doesCPexist(CPname)){
it.remove();
removedCP=true;
}
else{
//if the instance exists, remove it from listInstancesHash and add it to the list of mapped instances
else{//the CP exists, then check the single instances: if the instance exists, remove it from listInstancesHash and add it to the list of mapped instances