Optimizing the XMI loader
Adding parameters to allow for deactivating events.