Separated ClassIdentifier into two classes: Dispatcher and Handler. Dispatcher has one static function called dispatch(MGenBase, Handler), which dispatches an object to a handlers correct callback