public static void addLink(PaginationLink link,int pageNumber,UriBuilder uriBuilder,Map<String,URI> bodyLinks){
  UriBuilder pageLink=uriBuilder.replaceQueryParam("page",pageNumber);
  bodyLinks.put(link.getBodyName(),pageLink.build());
}

public static void addLink ( PaginationLink link , int pageNumber , UriBuilder uriBuilder , Map < String , URI > bodyLinks ) { UriBuilder pageLink = uriBuilder . replaceQueryParam ( "page" , pageNumber ) ; bodyLinks . put ( link . getBodyName ( ) , pageLink . build ( ) ) ; }
adds the specified link to the headers and to the map of links that will be added to the body of the response .
