Page page = pageManager.getContainingPage(resource);
if (page == null) {
return Collections.emptyList();
}
Design design = designer.getDesign(page);
if (design == null) {
return Collections.emptyList();
}
return Collections.singletonList(new Reference(TYPE_DESIGN_PAGE,
String.format("%s (Design)", design.getId()),
design.getContentResource(),
getLastModified(design)));
}