code: public static ObjectFields convertGenObjectFieldsToObjectFields(org.fcrepo.server.types.gen.ObjectFields source) {
          if (source == null) {
              return null;
          }
          ObjectFields result = new ObjectFields();
          result.setPid(source.getPid() != null ? source.getPid().getValue() : null);
          result.setLabel(source.getLabel() != null ? source.getLabel().getValue() : null);
          result.setState(source.getState() != null ? source.getState().getValue() : null);
          result.setOwnerId(source.getOwnerId() != null ? source.getOwnerId().getValue() : null);
          result.setCDate(source.getCDate() != null ? DateUtility.convertStringToDate(source.getCDate().getValue()) : null);
          result.setMDate(source.getMDate() != null ? DateUtility.convertStringToDate(source.getMDate().getValue()) : null);
          result.setDCMDate(source.getDcmDate() != null ? DateUtility.convertStringToDate(source.getDcmDate().getValue()) : null);
          result.titles().addAll(convertStringArray(source.getTitle()));
          result.subjects().addAll(convertStringArray(source.getSubject()));
          result.descriptions()
                  .addAll(convertStringArray(source.getDescription()));
          result.publishers().addAll(convertStringArray(source.getPublisher()));
          result.contributors()
                  .addAll(convertStringArray(source.getContributor()));
          result.dates().addAll(convertStringArray(source.getDate()));
          result.types().addAll(convertStringArray(source.getType()));
          result.formats().addAll(convertStringArray(source.getFormat()));
          result.identifiers().addAll(convertStringArray(source.getIdentifier()));
          result.sources().addAll(convertStringArray(source.getSource()));
          result.languages().addAll(convertStringArray(source.getLanguage()));
          result.relations().addAll(convertStringArray(source.getRelation()));
          result.coverages().addAll(convertStringArray(source.getCoverage()));
          result.rights().addAll(convertStringArray(source.getRights()));
          return result;
      }
docs: Convert a WSDL-style
  {@link org.fcrepo.server.types.gen.ObjectFields ObjectFields} object to a
  local {@link ObjectFields} object.