I think that pure xblocks don't have that method, but xmodules do. However, I'm not 100% sure about this. As I said, this is how the code was before my changes. I'll check with Cale.