if (objectAdapters == null) {
return;
}
final JsonRepresentation values = JsonRepresentation.newArray();
final LinkFollower linkFollower = getLinkFollower().follow("value");
for (final ObjectAdapter adapter : objectAdapters) {
final JsonRepresentation linkToObject = linkTo.with(adapter).builder().build();
values.arrayAdd(linkToObject);
if (linkFollower.matches(linkToObject)) {
final RendererFactory factory = RendererFactoryRegistry.instance.find(RepresentationType.DOMAIN_OBJECT);
final DomainObjectReprRenderer renderer = (DomainObjectReprRenderer) factory.newRenderer(getResourceContext(), linkFollower, JsonRepresentation.newMap());
final JsonRepresentation domainObject = renderer.with(adapter).render();
linkToObject.mapPut("value", domainObject);
}