@Override
public void onGET(OgemaHttpRequest req) {
final boolean existing = resSelectorCheckbox.getCheckboxList(req).get(0).isChecked();
if (!existing) {
update(Collections.emptyList(), req);
disable(req);
return;
}
enable(req);
final Class<? extends SingleValueResource> type = typeSelector.getSelectedItem(req);
final List<ConfigPattern> configs = appMan.getResourcePatternAccess().getPatterns(ConfigPattern.class, AccessPriority.PRIO_LOWEST);
final List<SingleValueResource> resources = appMan.getResourceAccess().getResources(type).stream()
.filter(resource -> !configs.stream().filter(cfg -> cfg.target.equalsLocation(resource)).findAny().isPresent())
.collect(Collectors.toList());
update(resources, req);
}