1. A computer-implemented method for optimizing performance in a computing environment, the method comprising: annotating logic code associated with a software component; and monitoring execution of the annotated logic code to determine whether a condition has been satisfied, wherein annotations in the logic code provide one or more details about the software component, the details being useful to a healing agent to correct or prevent a problem associated with said condition during the execution of the logic code, wherein the healing agent's actions to correct or prevent a problem result in instantiation of a proxy object with a first memory footprint, wherein the proxy object provides a reference to a target object with a second memory footprint larger than the first memory footprint, wherein the target object is removed from execution environment of the logic code, based on a determination that the target object is not immediately needed for proper execution and that removal of the target object would help optimize the execution of the logic code, and wherein in response to invocation of the target object, the proxy object provides a reference to help restore the removed target object; wherein logic code for the healing agent is independent of the software component, so that a first healing logic code for correcting the problem can be replaced by a second healing logic code without substantially modifying logic code for the software component.