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)) {
return new EmbededExternalResourceSecurity(resourceURL);
} else {
return new NoLoadExternalResourceSecurity();