{
String[] pageChunks = split("::", reference);
ObjectType<? extends Site> siteType = parseSiteType(pageChunks[0]);
Site site = workspace.getSite(siteType, pageChunks[1]);
org.gatein.mop.api.workspace.Page target = site.getRootPage().getChild("pages").getChild(pageChunks[2]);
PageLink link = dst.linkTo(ObjectType.PAGE_LINK);
link.setPage(target);
}
else
{
PageLink link = dst.linkTo(ObjectType.PAGE_LINK);
link.setPage(null);
}
//
Described described = dst.adapt(Described.class);
described.setName(node.getLabel());