GPSPRINGCACHE-51 - applied fix provided by Burt in JIRA comment

Applied fix provided by Burt in the JIRA issue comments.

I branched off the grails2 branch since this bug seems to be related to Grails 2.