def __getattr__(self, attr):
        """Import, instantiate, and return the desired instance.
        
        Note, these instances will be cached in ``self._autoLoaderCache``.

        """
        if not self.__dict__.has_key("_autoLoaderCache"):
            self._autoLoaderCache = {}
        cache = self._autoLoaderCache 
        if not cache.has_key(attr):
            try:
                cache[attr] = self._ctx.iLib.aquariumFactory("%s.%s" %
                    (self.getModuleType(), attr))
            except ImportError:
                raise AttributeError("""\
%s instance has no attribute '%s', and AutoLoader failed too""" % 
                                     (self.__class__.__name__, attr))
        return cache[attr]
Import, instantiate, and return the desired instance.
        
        Note, these instances will be cached in ``self._autoLoaderCache``.

        
recipes/Python/363772_AutoLoader/recipe-363772.py