// Create the resource uri, either from the id or the path. If none is
// specified, and we are not in jsp compilation mode, issue a warning
ResourceURI uri = null;
if (StringUtils.isNotBlank(videoId)) {
uri = new MovieResourceURIImpl(site, null, videoId);
} else if (StringUtils.isNotBlank(videoResourcePath)) {
uri = new MovieResourceURIImpl(site, videoResourcePath);
} else {
throw new JspException("Neither video id nor video path were specified");
}
// Try to load the video resource from the content repository