private void markCreatedBaselines(List<Baseline> createdBls, List<Baseline> latestBls) { for (Baseline latestBl : latestBls) { for (Baseline createdBl : createdBls) { if (latestBl.getName().equals(createdBl.getName())) { latestBl.setCreated(true); /* we transfer the component & pvob information here so they can be used for * the promotion and recomendation of the created baselines later. */ createdBl.setComponent(latestBl.getComponent()); createdBl.setPvob(latestBl.getPvob()); break; } } } }