if (projectAccess.getCostCenter()) { continue; }  if (projectAccess.getEnd().before(currentDate)) { continue; }  if (projectAccess.getBegin().after(currentDate)) { continue; }
if (projectAccess.getEndDateTime().isAfter(currentDate) && projectAccess.getBeginDateTime().isBefore(currentDate)) {
    public static List<ProjectAccess> getAllByPersonUsername(String username) {        List<ProjectAccess> result = new ArrayList<ProjectAccess>();        Date currentDate = Calendar.getInstance().getTime();                outter:        for (ProjectAccess projectAccess : RootDomainObject.getInstance().getProjectAccesss()) {            if (projectAccess.getCostCenter()) {                continue;            }                    if (projectAccess.getEnd().before(currentDate)) {                continue;            }                        if (projectAccess.getBegin().after(currentDate)) {                continue;            }            for (Identification identification : projectAccess.getPerson().getUser().getIdentifications()) {                if (! (identification instanceof Login)) {                    continue outter;                }                                Login login = (Login) identification;                                if (! username.equals(login.getUsername())) {                    continue outter;                }            }                        result.add(projectAccess);        }                return result;    }