convert(out,in,scriptId);
// Compress JavaScript output by JSMin ( true by default )
if (!"false".equalsIgnoreCase(context.getInitParameter(COMPRESS_SCRIPTS_PARAMETER))) {
CountingOutputStream countingStream = new CountingOutputStream(out);
JSMin jsmin = new JSMin(in, countingStream);
try {
jsmin.jsmin();
} catch (Exception e) {
_log.error("Error send script to client for resource " + base.getKey(), e);
} finally {
in.close();
countingStream.flush();