code: def createDocument(self, initDict = None) :
          
          if initDict is not None :
              return self.createDocument_(initDict)
          else :
              if self._validation["on_load"] :
                  self._validation["on_load"] = False
                  return self.createDocument_(self.defaultDocument)
                  self._validation["on_load"] = True
              else :
                  return self.createDocument_(self.defaultDocument)
docs: create and returns a document populated with the defaults or with the values in initDict