EObject extendedObject = extension.getExtendedObject();
// if the exended EObject had an adapter, remove it.
if(extendedObject != null){
EList adapters = extendedObject.eAdapters();
EList removeAdapterList = new BasicEList();
for (Iterator iter2 = adapters.iterator();iter2.hasNext();) {
Adapter adapter = (Adapter) iter2.next();
if((adapter instanceof ExtendedObjectUserAdapter && ((ExtendedObjectUserAdapter)adapter).getNamespace().equals(((ExtensionMap)getTarget()).getNamespace()))||