Wraps Jsel object such as the underlying object becomes garbage collection
eligible and will be transparently restored from the database and source files
on demand
author: Pavel Vlasov version: $Revision: 1.2 $
Convenience method.
Parameters: toWrap - Object to wrap Parameters: classesToWrap - collection of classes that shall be wrapped. Wrappable is always wrapped. Can be null. Proxy object for toWrap if toWrap is either Wrappable or instance of one of classes from classesToWrap, toWrap otherwise throws: Throwable -