code: public static void addTargetLinks(final MgmtTarget response) {
          response.add(linkTo(methodOn(MgmtTargetRestApi.class).getAssignedDistributionSet(response.getControllerId()))
                  .withRel(MgmtRestConstants.TARGET_V1_ASSIGNED_DISTRIBUTION_SET));
          response.add(linkTo(methodOn(MgmtTargetRestApi.class).getInstalledDistributionSet(response.getControllerId()))
                  .withRel(MgmtRestConstants.TARGET_V1_INSTALLED_DISTRIBUTION_SET));
          response.add(linkTo(methodOn(MgmtTargetRestApi.class).getAttributes(response.getControllerId()))
                  .withRel(MgmtRestConstants.TARGET_V1_ATTRIBUTES));
          response.add(linkTo(methodOn(MgmtTargetRestApi.class).getActionHistory(response.getControllerId(), 0,
                  MgmtRestConstants.REQUEST_PARAMETER_PAGING_DEFAULT_LIMIT_VALUE,
                  ActionFields.ID.getFieldName() + ":" + SortDirection.DESC, null))
                          .withRel(MgmtRestConstants.TARGET_V1_ACTIONS).expand());
          response.add(linkTo(methodOn(MgmtTargetRestApi.class).getMetadata(response.getControllerId(),
                  MgmtRestConstants.REQUEST_PARAMETER_PAGING_DEFAULT_OFFSET_VALUE,
                  MgmtRestConstants.REQUEST_PARAMETER_PAGING_DEFAULT_LIMIT_VALUE, null, null)).withRel("metadata"));
      }
docs: Add links to a target response.
  
  @param response
  the target response