Deprecated
This API is deprecated and will be removed in a future version.
Returns:
Create an object instance.
the type of object to create
the object instance