code: private void writeWBS(Task mpxj)
     {
        if (mpxj.getUniqueID().intValue() != 0)
        {
           WBSType xml = m_factory.createWBSType();
           m_project.getWBS().add(xml);
           String code = mpxj.getWBS();
           code = code == null || code.length() == 0 ? DEFAULT_WBS_CODE : code;
  
           Task parentTask = mpxj.getParentTask();
           Integer parentObjectID = parentTask == null ? null : parentTask.getUniqueID();
  
           xml.setCode(code);
           xml.setGUID(DatatypeConverter.printUUID(mpxj.getGUID()));
           xml.setName(mpxj.getName());
  
           xml.setObjectId(mpxj.getUniqueID());
           xml.setParentObjectId(parentObjectID);
           xml.setProjectObjectId(PROJECT_OBJECT_ID);
           xml.setSequenceNumber(Integer.valueOf(m_wbsSequence++));
  
           xml.setStatus("Active");
        }
  
        writeChildTasks(mpxj);
     }
docs: Writes a WBS entity to the PM XML file.
  
  @param mpxj MPXJ Task entity