private String getHref() {
   UriComponentsBuilder localBuilder = baseComponent.cloneBuilder();
   if (queryString == null) {
     return localBuilder.build().toString();
   } else {
     return localBuilder.query(queryString).build().toString();
   }
 }
 private String getHref(int pageParameter) {
   UriComponentsBuilder localBuilder = baseComponent.cloneBuilder();
   if (queryString == null) {
     return localBuilder
         .queryParam(HalResourceMetadata.PARAM_PAGE, pageParameter)
         .build()
         .toString();
   } else {
     return localBuilder
         .query(queryString)
         .queryParam(HalResourceMetadata.PARAM_PAGE, pageParameter)
         .build()
         .toString();
   }
 }