InputStream in;
try {
in = new ByteArrayInputStream(this.getFileContents().getBytes("UTF-8"));
OutputStream out = new ByteArrayOutputStream();
JSMin jsmin = new JSMin(in, out);
jsmin.jsmin();
fileMinifiedContents = new String(out.toString());
} catch (UnsupportedEncodingException e) {
// TODO Auto-generated catch block
e.printStackTrace();