public ResourceReference getJsResourceReference() {
ResourceReference jsReference;
if (useCdnResources()) {
String cdnUrl = String.format(JS_CDN_PATTERN, getVersion());
jsReference = new JQueryPluginUrlResourceReference(Url.parse(cdnUrl));
} else {
jsReference = bootstrapJavaScriptReference;
}
return jsReference != null ? jsReference : Holder.bootstrapJavaScriptReference;