Adding onHydrate event and onEvent to Domain Objects