Date now = system2.newDate();
if (previous == null) {
FileSourceDto newFileSource = new FileSourceDto().setProjectUuid(projectTree.getRootProject().getUuid()).setFileUuid(fileUuid).setData(newData).setDataHash(dataHash)
.setCreatedAt(now)
.setUpdatedAt(now);
<BUG>mapper.insert(newFileSource);
} else {
if (dataHash.equals(previous.getDataHash())) {

continue;
} else {</BUG>
previous.setData(newData).setDataHash(dataHash).setUpdatedAt(now);

Date now = system2.newDate();
if (previous == null) {
FileSourceDto newFileSource = new FileSourceDto().setProjectUuid(projectTree.getRootProject().getUuid()).setFileUuid(fileUuid).setData(newData).setDataHash(dataHash)
.setCreatedAt(now)
.setUpdatedAt(now);
mapper.insert(newFileSource);
session.commit();
} else {
if (!dataHash.equals(previous.getDataHash())) {
previous.setData(newData).setDataHash(dataHash).setUpdatedAt(now);
