final LinkFollower linkFollower = getLinkFollower().follow("links[rel=version]");
if (linkFollower.matches(link)) {
final RendererFactory factory = RendererFactoryRegistry.instance.find(RepresentationType.VERSION);
final VersionReprRenderer renderer = (VersionReprRenderer) factory.newRenderer(getResourceContext(), linkFollower, JsonRepresentation.newMap());
link.mapPut("value", renderer.render());
}
getLinks().arrayAdd(link);
}