boolean (List<? extends List<RunDashboardServiceImpl>> newServiceList, List<? extends RunDashboardServiceImpl> oldServices) { RunDashboardServiceImpl oldService = oldServices.get(0); RunnerAndConfigurationSettings oldSettings = oldService.getSettings(); for (List<RunDashboardServiceImpl> newServices : newServiceList) { RunnerAndConfigurationSettings newSettings = newServices.get(0).getSettings(); if (newSettings.getType().equals(oldSettings.getType()) && newSettings.getName().equals(oldSettings.getName())) { newServices.remove(0); newServices.add(0, new RunDashboardServiceImpl(newSettings, oldService.getContent())); for (int i = 1; i < oldServices.size(); i++) { RunDashboardServiceImpl newService = new RunDashboardServiceImpl(newSettings, oldServices.get(i).getContent()); newServices.add(newService); } return true; } } return false; }