ScriptSecurity result = null;
if (scripts.indexOf(scriptType) == -1) {
result = new NoLoadScriptSecurity(scriptType);
} else {
if ("ANY".equals(scriptOrigin)) {
result = new RelaxedScriptSecurity(scriptType,
scriptURL,
docURL);
} else if ("DOCUMENT".equals(scriptOrigin)) {
result = new DefaultScriptSecurity(scriptType,
scriptURL,