"protocol");
}
String script = null;
EventAttributes eventAttributes
= attributes.getEventAttributes (true);
ScriptAssetReference userScript = eventAttributes.getEvent (eventIndex);
if (userScript != null) {
Script scriptObject = Script.createScript(userScript);
if (logger.isDebugEnabled ()) {
logger.debug ("User script for " + attributeName
+ " is " + scriptObject);
}
if (scriptObject != null) {
script = scriptObject.stringValue();
}
}
if (internalScript != null) {
if (logger.isDebugEnabled ()) {
logger.debug ("Internal script for " + attributeName
+ " is " + internalScript);
}
if (script == null) {
script = internalScript;
} else {
script = scriptHandler.joinScripts (this, script,
internalScript);
if (logger.isDebugEnabled ()) {
logger.debug ("Joined script " + attributeName
+ " is " + script);
}
}
}
if (script != null) {
eventAttributes.setEvent(eventIndex, script);
}
} catch (ProtocolException e) {
throw new RendererException(e);
}