// in the refinement to prevent it from trying to again
// mirror the changes in the container.
Entity entity = container.getEntity(newName);
// Get the initial port configuration from the container.
Iterator ports = container.portList().iterator();
while (ports.hasNext()) {
Port port = (Port) ports.next();
try {