Correctly wrap the given object to use in the scripting environment. If a
wrapper that a WrapperFactory creates does not need any special context
information, it is safe to ignore lang and param.
lang - The scripting language we are using. This is used to choose a
specific wrapper if the wrapper must vary depending on
scripting language.
param - Some wrapper classes need parameters to correctly wrap
objects. param is how this information is passed. param can be
null if no extra information is necessary.
Returns:
null - if (obj == null)
null - if param is not sufficient to wrap the object for the
given language.
Wrapped object - else.
Get the object that should be returned on a lookup call on
ObjectWrapperManager. This method exists so that if a different object
should be returned than is passed in. This is the case if a
DirectoryObjectEntity is wrapped, but a DirectoryObject should be
returned. In most cases obj will be returned.