def gatherNamespaces(self):
if self.usedNamespaces is not None:<EOL><INDENT>return<EOL><DEDENT>self.logger.debug('<STR_LIT>')<EOL>self.usedNamespaces = {}<EOL>for schema in list(self._wsdl.types.values()):<EOL><INDENT>tns = schema.getTargetNamespace()<EOL>self.logger.debug('<STR_LIT>'%(_get_idstr(schema), tns),)<EOL>if (tns in self.usedNamespaces) is False:<EOL><INDENT>self.usedNamespaces[tns] = []<EOL><DEDENT>self.usedNamespaces[tns].append(schema)<EOL>NAD.add(tns)<EOL><DEDENT>for k,v in list(SchemaReader.namespaceToSchema.items()):<EOL><INDENT>self.logger.debug('<STR_LIT>'%(_get_idstr(v), k),)<EOL>if (k in self.usedNamespaces) is False:<EOL><INDENT>self.usedNamespaces[k] = []<EOL><DEDENT>self.usedNamespaces[k].append(v)<EOL>NAD.add(k)<EOL><DEDENT>
This method must execute once..  Grab all schemas
        representing each targetNamespace.