Install Groovy Script to Bonita Portal

I have a groovy script (a class) which allows me to get users of specific roles. My question is, how do I install that in the Bonita Portal, because when the process gets to the sending of the email part, it throws a missingMethodException. I assumed this meant that Bonita Studio did not include the groovy script that I've made when I built the .bar file of the process.

Is there any way to get pass this aside from just putting the groovy script in the groovy editor of the email connector? 

Hi,
Groovy scripts used in the processes must be included in the bar using the configuration dialog in Studio.

HTH
Romain