private static ScriptAssetReference getScriptAssetReference(
final String policyName, final MarinerPageContext pageContext) {
final RuntimeProject project = pageContext.getCurrentProject();
final MarinerURL baseURL = pageContext.getBaseURL();
final PolicyReferenceFactory factory =
pageContext.getPolicyReferenceFactory();
final RuntimePolicyReference reference =
factory.createLazyNormalizedReference(
project, baseURL, policyName, PolicyType.SCRIPT);
final ScriptAssetReference scriptAssetReference =
new DefaultComponentScriptAssetReference(
reference, pageContext.getAssetResolver());
return scriptAssetReference.getScriptAsset() != null ?