Now that I see how you're using this, I'm not sure I made the right suggestion when I suggested that you pass the container in to the constructor.  Either way is really fine with me, actually.