This is just nasty, the abstractions are wrong if this is the intended usage of that inner class.  Remove this part of the API please (talk to me if you are having trouble figuring out how to do it in a way that makes sense).