code: public void addControls( final Model model )
      {
          final URIBuilder pagedURL;
          try {
              pagedURL = new URIBuilder( fragmentURL );
          }
          catch ( URISyntaxException e ) {
              throw new IllegalArgumentException( e );
          }
  
          final Resource fragmentId = model.createResource( fragmentURL );
  
          final Resource firstPageId =
                  model.createResource(
                          pagedURL.setParameter(ILinkedDataFragmentRequest.PARAMETERNAME_PAGE,
                                                "1").toString() );
  
          fragmentId.addProperty( CommonResources.HYDRA_FIRSTPAGE, firstPageId );
  
          if ( pageNumber > 1) {
              final String prevPageNumber = Long.toString( pageNumber - 1 );
              final Resource prevPageId =
                      model.createResource(
                              pagedURL.setParameter(ILinkedDataFragmentRequest.PARAMETERNAME_PAGE,
                                                    prevPageNumber).toString() );
  
              fragmentId.addProperty( CommonResources.HYDRA_PREVIOUSPAGE, prevPageId );
          }
  
          if ( ! isLastPage ) {
              final String nextPageNumber = Long.toString( pageNumber + 1 );
              final Resource nextPageId =
                      model.createResource(
                              pagedURL.setParameter(ILinkedDataFragmentRequest.PARAMETERNAME_PAGE,
                                                    nextPageNumber).toString() );
  
              fragmentId.addProperty( CommonResources.HYDRA_NEXTPAGE, nextPageId );
          }
      }
docs: Adds an RDF description of page links to the given RDF model.
  This method may be overridden in subclasses.
  @param model