for (int i = 0; i < projectList.size(); i++) infoProjectList.add(InfoProject.newInfoFromDomain(projectList.get(i)));
} for (Project project : projectList) { infoProjectList.add(InfoProject.newInfoFromDomain(project)); }
    public List<InfoProject> run(String username, String costCenter, Boolean all, String userNumber) throws ExcepcaoPersistencia {        List<InfoProject> infoProjectList = new ArrayList<InfoProject>();        List<Integer> projectCodes = new ArrayList<Integer>();                List<ProjectAccess> accesses = ProjectAccess.getAllByPersonUsernameAndDatesAndCostCenter(username, costCenter);        for (ProjectAccess access : accesses) {            Integer keyProject = access.getKeyProject();                        if (! projectCodes.contains(keyProject)) {                projectCodes.add(keyProject);            }        }                PersistentSuportOracle p = PersistentSuportOracle.getInstance();        List<Project> projectList = p.getIPersistentProject().readByUserLogin(userNumber);        if (all)            projectList.addAll(p.getIPersistentProject().readByProjectsCodes(projectCodes));        for (int i = 0; i < projectList.size(); i++)            infoProjectList.add(InfoProject.newInfoFromDomain(projectList.get(i)));        return infoProjectList;    }