String sourceContent = HtmlUtil.escape(StringUtil.read(sourceIs));
sourceIs = new UnsyncByteArrayInputStream(
sourceContent.getBytes(StringPool.UTF8));
}
FileVersion targetFileVersion = DLAppLocalServiceUtil.getFileVersion(
<BUG>targetVersionId);
</BUG>
InputStream targetIs = targetFileVersion.getContentStream(false);
String targetExtension = targetFileVersion.getExtension();
if (targetExtension.equals("css") || targetExtension.equals("htm") ||

String sourceContent = HtmlUtil.escape(StringUtil.read(sourceIs));
sourceIs = new UnsyncByteArrayInputStream(
sourceContent.getBytes(StringPool.UTF8));
}
FileVersion targetFileVersion = DLAppLocalServiceUtil.getFileVersion(
targetFileVersionId);
InputStream targetIs = targetFileVersion.getContentStream(false);
String targetExtension = targetFileVersion.getExtension();
if (targetExtension.equals("css") || targetExtension.equals("htm") ||
