final Logger logger = LoggerFactory.getLogger(controllerName);
try {
// pre-load the engine to make sure we were called right
final SiteContext site = context.getSiteContext();
if (site != null) {
BSFEngine bsfEngine = site.getBSFEngine(language, context, configuration, logger);
// Execute with the proper language, the fileName (for error reporting),
// the row and column to start at, and finally the contents of the script
// some examples: http://massapi.com/class/bs/BSFManager.html
bsfEngine.exec(controllerName, 0, 0, script);
} else {
throw new ControllerException("Micro site is not in the current context, please review");
}
// return bsfManager.lookupBean(Globals.SCRIPT_CONTROLLER_RESPONSE);