svoid dm_registerService(fS name, fO service) { fO creator = creator(); final DynModule mod = dm_current_mandatory(); call(creator, 'registerService, mod, name, service); dm_ownResource(autoCloseable { call(creator, 'unregisterService, mod, name, service); }); }