<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def createDocument(self, initDict = None) : """create and returns a document populated with the defaults or with the values in initDict"""

        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)