if (file.getState()==C_STATE_UNCHANGED) {
projectId=onlineProject.getId();
} else {
projectId=project.getId();
}
<BUG>synchronized (m_statementFileRead) {
m_statementFileRead.setString(1,absoluteName(filename));
m_statementFileRead.setInt(2,projectId);
res = m_statementFileRead.executeQuery();
if (res.next()) {</BUG>
file.setContents(res.getBytes(C_FILE_CONTENT));

if (file.getState()==C_STATE_UNCHANGED) {
projectId=onlineProject.getId();
} else {
projectId=project.getId();
}
PreparedStatement statementFileRead=m_Con.prepareStatement(C_FILE_READ);
statementFileRead.setString(1,absoluteName(filename));
statementFileRead.setInt(2,projectId);
res = statementFileRead.executeQuery();
if (res.next()) {
