PolicyReferenceResolver resolver =
pageContext.getPolicyReferenceResolver();
// Parse the source expression.
ScriptAssetReference src
= resolver.resolveQuotedScriptExpression(attributes.getSrc());
// Set the attributes used in both modes.
String id = attributes.getId();
pattributes.setId(id);
pattributes.setDefer(attributes.getDefer());
// @todo this code duplicates the functionality of the protocols Script
// object. we should refactor it away...
if (src != null && src.isPolicyReference()) {
ScriptAsset asset = src.getScriptAsset();
// If no asset was found then there is nothing more to do.
if (asset == null) {
return SKIP_ELEMENT_BODY;
}