rewrote registerInMetaClassesContextOf(event) util method