1. A computing system comprising a code transformation module that is specific to a particular type of resource within a source code and a resource monitoring module, the computing system comprising: a processor and memory with machine readable instructions that when executed by the processor, cause the system to: with the resource monitoring module, provide to the code transformation module, a set of references to methods, the methods comprising code associated with a resource, wherein the methods are within the source code, and the set of references is outside the source code, the set of references obtained by parsing all methods that include a call to open the resource; with the code transformation module, automatically create a modified source code by inserting new code into the source code, the new code to close the resource at the end of each method referenced by the set of references; iteratively perform the following until exceptions are no longer triggered resulting from attempts to access unclosed resources: compile the modified source code to create an executable application; with the resource monitoring module, during execution of the application, determine that an exception has occurred as a result of an attempt to access the resource when the resource is closed due the new code inserted in the source code; with the resource monitoring module, update the set of references to include a new reference to a new method in the set of references, the new method corresponding to the method causing the exception; and with the code transformation module, remove code that closes the resource from the method in which the exception occurred; and after exceptions are no longer triggered resulting from attempts to access unclosed resources, output a final source code to be compiled and deployed.