namespaces.put(typePkg.getNsPrefix(), typePkg.getNsURI());
namespaces.put(nsPrefix, typePkg.getNsURI());
  protected XSDTypeDefinition typeInOtherSchema(EClassifier classifier)  {    EPackage typePkg = classifier.getEPackage();    Map namespaces = xsdSchema.getQNamePrefixToNamespaceMap();    if (namespaces.get(typePkg.getNsPrefix()) == null)    {      namespaces.put(typePkg.getNsPrefix(), typePkg.getNsURI());      addImport(typePkg.getNsURI(), getName(typePkg) + ".xsd");      createOtherSchema(typePkg);    }    XSDSchema otherXSDSchema = (XSDSchema)ePackageToXSDSchemaMap.get(typePkg);    return otherXSDSchema.resolveTypeDefinition(getName(classifier));  }