protected File findProjectOrPredefinedFile(Integer projectId, String name) { File file = fileDao.findByName(projectId, name); if (file == null) { file = predefinedFilesDao.findByName(name); if (file != null) { file.setProject(loadProject(projectId)); } } return file; }
protected File loadFile(Integer id) { return fileDao.load(id); }