I'm using EJB and Delegate patterns and when i'm constructing a delegate in client code within a method, then after execution of that method i would like to do some clean up calls.
Is it possible to capture method in which i call
DelegateFactory.getInstance().getSomeDelegate()?