prototype foundation and grails