Hello, Saliaja: I'm afraid not. jclouds support for CloudStack API is at version 2.x+ and for what it does, it works great and it's clean.
Nik: Not an option. It will be a mess mixing Java with JavaScript. You would not wish to maintain such a software. It seems that the expunge time vary greatly. My query heuristics is also not that reliable so for now the only choice I have is to do the best I can in most situations and accepts the fact that we may leak resources. Thanks for the support. Cheers, -- Ioan Eugen Stan / CTO / http://axemblr.com