ManagedQuery is deprecated

http://is.gd/d5sXxx shows some possible answers.

I will update this once I get to it.