!7 sclass MonitorNetwork > DynPrintLog { transient O myFunction = func(S method, O[] args) { print("Access requested: " + method + " " + asList(args)); true; }; start { O f = vm_generalMap_get('isAllowed_function); if (f == null) { vm_generalMap_set('isAllowed_function, myFunction); print("Have function"); } } void cleanMeUp_mn { if (vm_generalMap_get('isAllowed_function) == myFunction) vm_generalMap_set('isAllowed_function, null); } }