if ((name == null) || (name.length() == 0)) {
throw new ResourceNotFoundException("No template name provided");
}
if (name.startsWith("/")) {
name = name.substring(1);
}
try {
return ClassLoaderUtils.getResourceAsStream(name, StrutsResourceLoader.class);
} catch (Exception e) {
throw new ResourceNotFoundException(e.getMessage());
}