} 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);
}
} else {
ref = new CachedResourceReference(scope, name, locale, style, cacheDuration, preProcessor);