I am new to javassist. I will first state what my problem is. I am working on a system where I can transparently move large sized objects in and out of memory (to disk) without the user being aware on it. So what I need is a wrapper for these large objects which can check if the target object(large object) is currently in memory . If not it has to fetch it from disk. So my question is : Can javassist help me in building such a functionality? And how?