docs: protected void setDefaultsForEmptyResourceFields() throws CmsImportExportException {
  
          // get UUID for the structure
          if (m_resourceBuilder.getStructureId() == null) {
              // if null generate a new structure id
              m_resourceBuilder.setStructureId(new CmsUUID());
          }
  
          // get UUIDs for the resource
          if ((m_resourceBuilder.getResourceId() == null) || (m_resourceBuilder.getType().isFolder())) {
              // folders get always a new resource UUID
              m_resourceBuilder.setResourceId(new CmsUUID());
              m_resourceIdWasNull = true;
          }
  
          // read date last modified from the resource, default to currentTime for folders
          if (m_resourceBuilder.getDateLastModified() == DATE_LAST_MODIFICATION_FILETIME) {
              if (null != m_source) {
                  m_resourceBuilder.setDateLastModified(m_helper.getFileModification(m_source));
              } else {
                  m_resourceBuilder.setDateLastModified(System.currentTimeMillis());
              }
          }
  
          if (m_resourceBuilder.getDateLastModified() == DATE_LAST_MODIFICATION_UNSPECIFIED) {
              m_resourceBuilder.setDateLastModified(System.currentTimeMillis());
          }
  
          if (null == m_resourceBuilder.getUserLastModified()) {
              m_resourceBuilder.setUserLastModified(m_cms.getRequestContext().getCurrentUser().getId());
          }
  
          if (m_resourceBuilder.getDateCreated() == DATE_CREATED_UNSPECIFIED) {
              m_resourceBuilder.setDateCreated(System.currentTimeMillis());
          }
  
          if (m_resourceBuilder.getUserCreated().isNullUUID()) {
              m_resourceBuilder.setUserCreated(getRequestContext().getCurrentUser().getId());
          }
  
          if (m_properties == null) {
              m_properties = new HashMap<String, CmsProperty>();
          }
      }