code: public static FieldSearchResult convertGenFieldSearchResultToFieldSearchResult(org.fcrepo.server.types.gen.FieldSearchResult fsr) {
          long completeListSize = 0;
          long cursor = 0;
          Date expirationDate = new Date(0);
          String token = null;
  
          ListSession listSession = fsr.getListSession().getValue();
          if (listSession != null) {
              completeListSize = listSession.getCompleteListSize().longValue();
              cursor = listSession.getCursor().longValue();
              expirationDate =
                      DateUtility.convertStringToDate(listSession
                              .getExpirationDate().getValue());
              token = listSession.getToken();
          }
  
          List<org.fcrepo.server.search.ObjectFields> objectFields =
                  convertGenObjectFieldsArrayToObjectFieldsList(fsr
                          .getResultList().getObjectFields().toArray(new org.fcrepo.server.types.gen.ObjectFields[0]));
  //        BasicFieldSearchResult bfsr = new BasicFieldSearchResult(
          return new BasicFieldSearchResult(completeListSize,
                                            cursor,
                                            expirationDate,
                                            token,
                                            objectFields);
      }
docs: Convert a WSDL-style
  {@link org.fcrepo.server.types.gen.FieldSearchResult FieldSearchResult} to a
  local {@link FieldSearchResult}.