pub fn create_events( service: Arc<Box<dyn Events + Send + Sync>>) -> HashMap<String, Box<dyn MethodHandler + Send + Sync>>