ref = new CachedCompressedJsResourceReference(scope, name, locale, style, cacheDuration, preProcessor);
} else {
ref = new CachedCompressedResourceReference(scope, name, locale, style, cacheDuration, preProcessor);
}
} else {
ref = new CachedResourceReference(scope, name, locale, style, cacheDuration, preProcessor);
}
} else {
throw new IllegalArgumentException("can't create ResourceReference without ResourceSpec");
}
return ref;