if (ProjectAccess.getByPersonAndProject(person, new Integer(project.getProjectCode())) == null) {
if (ProjectAccess.getByPersonAndProject(person, new Integer(project.getProjectCode())) != null) {
    public void run(String userView, String costCenter, String username, GregorianCalendar beginDate,            GregorianCalendar endDate, String userNumber) throws ExcepcaoPersistencia {        Person person = Person.readPersonByUsername(username);        if (person == null)            throw new IllegalArgumentException();        deletePastProjectAccesses(person);        IPersistentSuportOracle po = PersistentSuportOracle.getInstance();        Integer coordinatorCode = new Integer(userNumber);        Boolean isCostCenter = setProjectsRoles(person, costCenter);        List<Integer> projectCodes = new ArrayList<Integer>();        List<ProjectAccess> accesses = ProjectAccess.getAllByPersonUsernameAndCoordinator(username,                coordinatorCode, true);        for (ProjectAccess access : accesses) {            Integer keyProject = access.getKeyProject();            if (!projectCodes.contains(keyProject)) {                projectCodes.add(keyProject);            }        }        List<Project> projectList = po.getIPersistentProject().readByCoordinatorAndNotProjectsCodes(                coordinatorCode, projectCodes);        for (Project project : projectList) {            if (ProjectAccess.getByPersonAndProject(person, new Integer(project.getProjectCode())) == null) {                throw new IllegalArgumentException();            }            ProjectAccess projectAccess = DomainFactory.makeProjectAccess();            projectAccess.setPerson(person);            projectAccess.setKeyProjectCoordinator(coordinatorCode);            projectAccess.setKeyProject(new Integer(project.getProjectCode()));            projectAccess.setBeginDate(beginDate);            projectAccess.setEndDate(endDate);            projectAccess.setCostCenter(isCostCenter);        }    }