code: private String getItemIndexViewURL(String reposBaseURL,
                                         String fedoraContext,
                                         String PID,
                                         Date versDateTime) {
          String itemIndexURL = null;
  
          try {
              if (versDateTime == null) {
                  itemIndexURL =
                          reposBaseURL + "/" + fedoraContext + "/objects/" + URLEncoder.encode(PID, "UTF-8")
                          + "/methods/" + URLEncoder.encode("fedora-system:3", "UTF-8") + "/viewItemIndex";
              } else {
                  itemIndexURL =
                          reposBaseURL + "/" + fedoraContext + "/objects/" + URLEncoder.encode(PID, "UTF-8")
                          + "/methods/" + URLEncoder.encode("fedora-system:3", "UTF-8") + "/viewItemIndex?asOfDateTime="
                          + DateUtility.convertDateToString(versDateTime);
              }
          } catch (UnsupportedEncodingException e) {
              // should never happen...
              throw new RuntimeException(e);
          }
          return itemIndexURL;
      }
docs: aspects of the URL (e.g. fedora-system3 as the PID and viewItemIndex.