added protected to queryForResource example.
Public methods are automatically converted to controller actions, and this is not a public controller action.
Merge pull request #196 from scottdavis99/added_protected_to_queryForResource_2.3.x

added protected to queryForResource example.