code: def __get_stored_instances(self, factory_name):
          # type: (str) -> List[StoredInstance]
          
          with self.__instances_lock:
              return [
                  stored_instance
                  for stored_instance in self.__instances.values()
                  if stored_instance.factory_name == factory_name
              ]
docs: Retrieves the list of all stored instances objects corresponding to
          the given factory name
  
          :param factory_name: A factory name
          :return: All components instantiated from the given factory