return false;
}
private String getVersionedPath(final String originalPath, final LibraryType libraryType) {
try {
final PathInfo pathInfo = new PathInfo(originalPath);
final HtmlLibrary htmlLibrary = htmlLibraryManager.getLibrary(libraryType, pathInfo.getResourcePath());
if (htmlLibrary != null) {
StringBuilder builder = new StringBuilder();
builder.append(htmlLibrary.getLibraryPath());
builder.append(".");
String selector = pathInfo.getSelectorString();
if (selector != null) {
builder.append(selector).append(".");
}
builder.append(DigestUtils.md5Hex(htmlLibrary.getInputStream()));
builder.append(libraryType.extension);
return builder.toString();
} else {
log.debug("Could not find HtmlLibrary at path: {}", pathInfo.getResourcePath());
return null;
}
} catch (Exception ex) {
// Handle unexpected formats of the original path
log.error("Attempting to get a versioned path for [ {} ] but could not because of: {}", originalPath,