writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); writeStartElement(null, namespace, "userName", xmlWriter); } if (localPasswordTracker){ namespace = "http://services.mgt.identity.carbon.wso2.org"; writeStartElement(null, namespace, "password", xmlWriter); } else { writeStartElement(null, "http://services.mgt.identity.carbon.wso2.org", "claims", xmlWriter); writeStartElement(null, "http://services.mgt.identity.carbon.wso2.org", "claims", xmlWriter); writeStartElement(null, namespace, "profileName", xmlWriter); } if (localTenantDomainTracker){ namespace = "http://services.mgt.identity.carbon.wso2.org"; writeStartElement(null, namespace, "tenantDomain", xmlWriter);