// Create the file uri, either from the id or the path. If none is
// specified, issue a warning
ResourceURI uri = null;
if (StringUtils.isNotBlank(fileId)) {
uri = new FileResourceURIImpl(site, null, fileId);
} else if (StringUtils.isNotBlank(filePath)) {
uri = new FileResourceURIImpl(site, filePath, null);
} else {
throw new JspException("Neither resource id nor resource path were specified");
}
// Try to load the file from the content repository