* @param url the URL for loading script.
* @throws IOException it script can't be loaded.
*/
public boolean loadScript(URL url) throws IOException
{
Object resource = groovyScriptInstantiator.instantiateScript(new GroovyCodeSource(url), groovyClassLoader);
if (binder.bind(resource))
{
// add mapping script URL to name of class.
scriptsURL2ClassMap.put(new URLScriptKey(url), resource.getClass());
return true;