This idea has been merged into another idea. To comment or vote on this idea, please visit DDXP-I-194 Garbage collector for Domino object memory in XPages.
Recycling objects correctly is very hard or even impossible in complex scenarios. The System itself should take care about that. For inspiration how it can be done see my project: https://sourceforge.net/projects/recycler/