break;
case REFERENCE:
ModelReference ref = value.asValue(ModelReference.class);
PathAddress address = ref.getValue();
ref.remove("_ref");
LinkBuilder linkBuilder = new LinkBuilder(uriInfo.getBaseUriBuilder());
linkBuilder.path(RestApplication.API_ENTRY_POINT).path(address.toString());
ref.get("url").set(linkBuilder.build().getHref());
break;
case LIST:
for (ModelValue mv : value.asValue(ModelList.class))
{
resolveLinks(mv, uriInfo);