public Project findProject(int id) {
Iterator<Entry<String, Project>> iterator = m_projects.entrySet().iterator();
while (iterator.hasNext()) {
Entry<String, Project> entry = iterator.next();
Project pro = entry.getValue();
if (pro.getId() == id) {
return pro;
}
}
try {
Project project = m_projectDao.findByPK(id, ProjectEntity.READSET_FULL);
m_projects.put(project.getDomain(), project);
return project;
} catch (DalNotFoundException e) {
} catch (Exception e) {
Cat.logError(e);
}