code: private void addObjectProperties(Feed feed, DigitalObject obj)
              throws ObjectIntegrityException {
          PID pid;
          try {
              pid = new PID(feed.getId().toString());
          } catch (MalformedPIDException e) {
              throw new ObjectIntegrityException(e.getMessage(), e);
          }
  
          String label = feed.getTitle();
          String state =
                  m_xpath.valueOf("/a:feed/a:category[@scheme='"
                          + MODEL.STATE.uri + "']/@term", feed);
          String createDate =
                  m_xpath.valueOf("/a:feed/a:category[@scheme='"
                          + MODEL.CREATED_DATE.uri + "']/@term", feed);
  
          obj.setPid(pid.toString());
  
          try {
              obj.setState(DOTranslationUtility.readStateAttribute(state));
          } catch (ParseException e) {
              throw new ObjectIntegrityException("Could not read object state", e);
          }
  
          obj.setLabel(label);
          obj.setOwnerId(getOwnerId(feed));
          obj.setCreateDate(DateUtility.convertStringToDate(createDate));
          obj.setLastModDate(feed.getUpdated());
  
          setExtProps(obj, feed);
      }
docs: Set the Fedora Object properties from the Feed metadata.
  
  @throws ObjectIntegrityException