if (doMinifyCss(name)) {
ref = new CompressedMergedCssResourceReference(name, locale, style, resourceSpecs, cacheDuration, preProcessor);
} else if (doMinifyJs(name)) {
ref = new CompressedMergedJsResourceReference(name, locale, style, resourceSpecs, cacheDuration, preProcessor);
} else {
ref = new CompressedMergedResourceReference(name, locale, style, resourceSpecs, cacheDuration, preProcessor);
}
} else {
ref = new MergedResourceReference(name, locale, style, resourceSpecs, cacheDuration, preProcessor);
}
} else if (resourceSpecs.length == 1) {