Program: 68534
Project: 68534
Buggy source:
public void initializeProjectDescriptor(){
  MWRootEisDescriptor projectDescriptor=this.getProjectDescriptor();
  MWClass projectClass=projectDescriptor.getMWClass();
  MWComplexTypeDefinition projectComplexType=this.getProjectSchema().complexType("String_Node_Str");
  MWElementDeclaration projectElement=this.getProjectSchema().element("String_Node_Str");
  projectDescriptor.addInheritancePolicy();
  MWEisDescriptorInheritancePolicy inheritancePolicy=(MWEisDescriptorInheritancePolicy)projectDescriptor.getInheritancePolicy();
  inheritancePolicy.setIsRoot(true);
  MWXmlClassIndicatorFieldPolicy classIndicatorPolicy=(MWXmlClassIndicatorFieldPolicy)inheritancePolicy.getClassIndicatorPolicy();
  classIndicatorPolicy.setUseXSIType(true);
  MWClassIndicatorValue classIndicatorValue=classIndicatorPolicy.getClassIndicatorValueForDescriptor(projectDescriptor);
  classIndicatorValue.setInclude(true);
  classIndicatorValue.setIndicatorValue("String_Node_Str");
  projectDescriptor.setSchemaContext(projectComplexType);
  projectDescriptor.setDefaultRootElement(projectElement);
  MWEisTransactionalPolicy transactionalPolicy=(MWEisTransactionalPolicy)projectDescriptor.getTransactionalPolicy();
  transactionalPolicy.setConformResultsInUnitOfWork(true);
  transactionalPolicy.getRefreshCachePolicy().setDisableCacheHits(true);
  transactionalPolicy.getRefreshCachePolicy().setAlwaysRefreshCache(true);
  MWEisPrimaryKeyPolicy primaryKeyPolicy=transactionalPolicy.getPrimaryKeyPolicy();
  primaryKeyPolicy.addPrimaryKey("String_Node_Str");
  MWXmlDirectMapping idMapping=(MWXmlDirectMapping)projectDescriptor.addDirectMapping(projectClass.attributeNamed("String_Node_Str"));
  idMapping.getXmlField().setXpath("String_Node_Str");
  MWXmlDirectMapping nameMapping=(MWXmlDirectMapping)projectDescriptor.addDirectMapping(projectClass.attributeNamed("String_Node_Str"));
  nameMapping.getXmlField().setXpath("String_Node_Str");
  MWXmlDirectMapping descriptionMapping=(MWXmlDirectMapping)projectDescriptor.addDirectMapping(projectClass.attributeNamed("String_Node_Str"));
  descriptionMapping.getXmlField().setXpath("String_Node_Str");
  MWXmlDirectMapping versionMapping=(MWXmlDirectMapping)projectDescriptor.addDirectMapping(projectClass.attributeNamed("String_Node_Str"));
  versionMapping.getXmlField().setXpath("String_Node_Str");
  MWXmlDirectMapping endDateMapping=(MWXmlDirectMapping)projectDescriptor.addDirectMapping(projectClass.attributeNamed("String_Node_Str"));
  endDateMapping.getXmlField().setXpath("String_Node_Str");
}

Fixed version (ground truth):
public void initializeProjectDescriptor(){
  MWRootEisDescriptor projectDescriptor=this.getProjectDescriptor();
  MWClass projectClass=projectDescriptor.getMWClass();
  MWComplexTypeDefinition projectComplexType=this.getProjectSchema().complexType("String_Node_Str");
  MWElementDeclaration projectElement=this.getProjectSchema().element("String_Node_Str");
  projectDescriptor.addInheritancePolicy();
  MWEisDescriptorInheritancePolicy inheritancePolicy=(MWEisDescriptorInheritancePolicy)projectDescriptor.getInheritancePolicy();
  inheritancePolicy.setIsRoot(true);
  MWXmlClassIndicatorFieldPolicy classIndicatorPolicy=(MWXmlClassIndicatorFieldPolicy)inheritancePolicy.getClassIndicatorPolicy();
  classIndicatorPolicy.setUseXSIType(true);
  MWClassIndicatorValue classIndicatorValue=classIndicatorPolicy.getClassIndicatorValueForDescriptor(projectDescriptor);
  classIndicatorValue.setInclude(true);
  classIndicatorValue.setIndicatorValue("String_Node_Str");
  projectDescriptor.setSchemaContext(projectComplexType);
  projectDescriptor.setDefaultRootElement(projectElement);
  MWEisTransactionalPolicy transactionalPolicy=(MWEisTransactionalPolicy)projectDescriptor.getTransactionalPolicy();
  transactionalPolicy.setConformResultsInUnitOfWork(true);
  transactionalPolicy.getRefreshCachePolicy().setDisableCacheHits(true);
  transactionalPolicy.getRefreshCachePolicy().setAlwaysRefreshCache(true);
  MWXmlPrimaryKeyPolicy primaryKeyPolicy=transactionalPolicy.getPrimaryKeyPolicy();
  primaryKeyPolicy.addPrimaryKey("String_Node_Str");
  MWXmlDirectMapping idMapping=(MWXmlDirectMapping)projectDescriptor.addDirectMapping(projectClass.attributeNamed("String_Node_Str"));
  idMapping.getXmlField().setXpath("String_Node_Str");
  MWXmlDirectMapping nameMapping=(MWXmlDirectMapping)projectDescriptor.addDirectMapping(projectClass.attributeNamed("String_Node_Str"));
  nameMapping.getXmlField().setXpath("String_Node_Str");
  MWXmlDirectMapping descriptionMapping=(MWXmlDirectMapping)projectDescriptor.addDirectMapping(projectClass.attributeNamed("String_Node_Str"));
  descriptionMapping.getXmlField().setXpath("String_Node_Str");
  MWXmlDirectMapping versionMapping=(MWXmlDirectMapping)projectDescriptor.addDirectMapping(projectClass.attributeNamed("String_Node_Str"));
  versionMapping.getXmlField().setXpath("String_Node_Str");
  MWXmlDirectMapping endDateMapping=(MWXmlDirectMapping)projectDescriptor.addDirectMapping(projectClass.attributeNamed("String_Node_Str"));
  endDateMapping.getXmlField().setXpath("String_Node_Str");
}