Extension extensionObject = getExtensionObject((EObject)extendedObject);
if(getExtensions().contains(extensionObject)){
Object oldExtension = extensionObject.getExtensionObject();
getExtensions().remove(extensionObject);
if (eNotificationRequired())
eNotify(new ExtensionModelNotificationImpl(this, Notification.REMOVE, ExtensionModelNotification.EXTENSION_MAP_REMOVE, extendedObject, oldExtension));
}
// Remove adapter if one exists
removeAdapters((EObject) extendedObject);