ref = new MergedResourceReference(name, locale, style, resourceSpecs, cacheDuration, preProcessor);
}
} else if (resourceSpecs.length == 1) {
if (doCompress(name)) {
if (doMinifyCss(name)) {
ref = new CachedCompressedCssResourceReference(scope, name, locale, style, cacheDuration, preProcessor);
} else if (doMinifyJs(name)) {
ref = new CachedCompressedJsResourceReference(scope, name, locale, style, cacheDuration, preProcessor);
} else {
ref = new CachedCompressedResourceReference(scope, name, locale, style, cacheDuration, preProcessor);
}