* @param request
* @param snippetName
* @return JSSnippet corresponding to snippetName
*/
public static JSSnippet getJsSnippet(ServletContext context, HttpServletRequest request, String snippetName) {
JSSnippet snippet = (JSSnippet) getAsset(context, request, snippetName, new JSSnippetNodeFactory(), jsRootPath);
if (snippet == null) {
snippet = loadAssetRemote(context, request, snippetName);
}
return snippet;
}