final String encoding = "UTF-8";
IOUtils.write(content, new FileOutputStream(temp), encoding);
LOG.debug("absolute path: {}", temp.getAbsolutePath());
final Process process = createProcess(temp);
final String result = IOUtils.toString(new AutoCloseInputStream(process.getInputStream()), encoding);
final int exitStatus = process.waitFor();// this won't return till `out' stream being flushed!
if (exitStatus != 0) {
final String compileError = result;
LOG.error("exitStatus: {}", exitStatus);
// find a way to get rid of escape character found at the end (minor issue)