void (ContentManager contentManager, ServiceViewContributor<?> contributor) { for (Content content : contentManager.getContents()) { ServiceView serviceView = getServiceView(content); if (serviceView != null) { ServiceViewModel viewModel = serviceView.getModel(); if (viewModel instanceof ContributorModel && contributor.equals(((ContributorModel)viewModel).getContributor())) { return; } } } ContributorModel contributorModel = new ContributorModel(myModel, myModelFilter, contributor, null); extract(contentManager, contributorModel, prepareViewState(new ServiceViewState()), true); }