 Various mechanisms exist to allow greater control of resource management.For example, in the Google Closure Library, the codice_43 class provides a codice_44 method to register other objects to be disposed with this object, together with various lower-level instance and class methods to manage disposal.In structured programming, stack resource management is done simply by nesting code sufficiently to handle all cases.