if (task.getPlanElement() != null) { if (logger.isDebugEnabled()) { logger.debug(getMyOrganization() + " - found task that already had a p.e. attached? : " + task.getUID() + " - so skipping it."); } } else { tasksWithoutPEs.add(task); }
if (task.getPlanElement() != null) { if (logger.isDebugEnabled()) { logger.debug(getMyOrganization() + " - found task that already had a p.e. attached? : " + task.getUID() + " - so skipping it.");
    protected Collection getTasksWithoutPEs(Collection tasks) {        Set tasksWithoutPEs = new HashSet();        for (Iterator iter = tasks.iterator(); iter.hasNext();) {            Task task = (Task) iter.next();            if (task.getPlanElement() != null) {                if (logger.isDebugEnabled()) {                    logger.debug(getMyOrganization() + " - found task that already had a p.e. attached? : " +                                 task.getUID() + " - so skipping it.");                }            } else {                tasksWithoutPEs.add(task);            }        }        return tasksWithoutPEs;    }