The present invention method and system ensure execution of post
processing logic for a subject computer program routine (e.g., Java
method) without wrapping the routine inside another. The invention system
and method include different sets of exit handling steps for different
types of exits in the subject routine. In each set of exit handling
steps, the post processing logic is executed. Flow of control of the
subject routine resumes at the respective exit point.