@Override
protected byte[] toContent(final byte[] content) {
try {
final IJavascriptCompressor compressor = Application.get().getResourceSettings().getJavascriptCompressor();
if (compressor != null) {
return compressor.compress(new String(content)).getBytes();
}
return content;
} catch (Exception e) {
log.error("Error while stripping content", e);
return content;