public ExternalResourceSecurity
getExternalResourceSecurity(ParsedURL resourceURL,
ParsedURL docURL) {
if ("ANY".equals(resourceOrigin)) {
return new RelaxedExternalResourceSecurity(resourceURL,
docURL);
} else if ("DOCUMENT".equals(resourceOrigin)) {
return new DefaultExternalResourceSecurity(resourceURL,
docURL);
} else if ("EMBEDED".equals(resourceOrigin)) {