Actually, it seems to me that the management of the container visibility should not be part of this singleton. That feels like something the caller should handle, not this class.