{
obj = NamingManager.getObjectInstance(obj, NAME_PARSER.parse(name), this, getInternalEnv());
if (obj instanceof DataSource)
{
obj = new CloseableDataSource((DataSource)obj);
}
// Re-bind with the object with its new value to be able to return the same ins
bindRefValue(name, obj);
}