public SchemaGenerator(String schemaTargetNamespace, TypeTable typeTable) {
this.schemaTargetNamespace = schemaTargetNamespace;
this.typeTable = typeTable;
XmlSchemaCollection xmlSchemaCollection = new XmlSchemaCollection();
xmlSchema = new XmlSchema(this.schemaTargetNamespace, xmlSchemaCollection);
xmlSchema.setAttributeFormDefault(new XmlSchemaForm(XmlSchemaForm.UNQUALIFIED));
xmlSchema.setElementFormDefault(new XmlSchemaForm(XmlSchemaForm.UNQUALIFIED));
nameSpacesMap.put(DEFAULT_SCHEMA_NAMESPACE_PREFIX,
URI_2001_SCHEMA_XSD);
nameSpacesMap.put(prefix, this.schemaTargetNamespace);
xmlSchema.setNamespaceContext(nameSpacesMap);