Program: 68533
Project: 68533
Buggy source:
public void initializeEmployeeDescriptor(){
  MWRootEisDescriptor employeeDescriptor=getEmployeeDescriptor();
  employeeDescriptor.addInterfaceAliasPolicy();
  MWClass interfaceAlias=typeNamed("String_Node_Str");
  ((MWDescriptorInterfaceAliasPolicy)employeeDescriptor.getInterfaceAliasPolicy()).setInterfaceAlias(interfaceAlias);
  MWClass employeeClass=employeeDescriptor.getMWClass();
  MWElementDeclaration employeeElement=this.getEmployeeSchema().element("String_Node_Str");
  employeeDescriptor.setSchemaContext(employeeElement);
  MWEisTransactionalPolicy transactionalPolicy=(MWEisTransactionalPolicy)employeeDescriptor.getTransactionalPolicy();
  transactionalPolicy.setConformResultsInUnitOfWork(true);
  transactionalPolicy.getRefreshCachePolicy().setDisableCacheHits(true);
  transactionalPolicy.getRefreshCachePolicy().setAlwaysRefreshCache(true);
  MWEisPrimaryKeyPolicy primaryKeyPolicy=transactionalPolicy.getPrimaryKeyPolicy();
  primaryKeyPolicy.addPrimaryKey("String_Node_Str");
  MWEisQueryManager queryManager=(MWEisQueryManager)employeeDescriptor.getQueryManager();
  MWEisInteraction readObjectInteraction=queryManager.getReadObjectInteraction();
  readObjectInteraction.setFunctionName("String_Node_Str");
  readObjectInteraction.addInputArgument("String_Node_Str","String_Node_Str");
  MWXmlDirectMapping idMapping=(MWXmlDirectMapping)employeeDescriptor.addDirectMapping(employeeClass.attributeNamed("String_Node_Str"));
  idMapping.getXmlField().setXpath("String_Node_Str");
  MWXmlDirectMapping firstNameMapping=(MWXmlDirectMapping)employeeDescriptor.addDirectMapping(employeeClass.attributeNamed("String_Node_Str"));
  firstNameMapping.getXmlField().setXpath("String_Node_Str");
  MWXmlDirectMapping lastNameMapping=(MWXmlDirectMapping)employeeDescriptor.addDirectMapping(employeeClass.attributeNamed("String_Node_Str"));
  lastNameMapping.getXmlField().setXpath("String_Node_Str");
  MWXmlDirectMapping genderMapping=(MWXmlDirectMapping)employeeDescriptor.addDirectMapping(employeeClass.attributeNamed("String_Node_Str"));
  genderMapping.getXmlField().setXpath("String_Node_Str");
  MWObjectTypeConverter genderConverter=genderMapping.setObjectTypeConverter();
  genderConverter.setAttributeType(new MWTypeDeclaration(genderConverter,genderMapping.typeNamed("String_Node_Str")));
  try {
    genderConverter.addValuePair("String_Node_Str","String_Node_Str");
    genderConverter.addValuePair("String_Node_Str","String_Node_Str");
  }
 catch (  ConversionValueException cve) {
  }
  genderConverter.setDefaultAttributeValue("String_Node_Str");
  MWXmlTransformationMapping normalHoursMapping=(MWXmlTransformationMapping)employeeDescriptor.addTransformationMapping(employeeClass.attributeNamed("String_Node_Str"));
  normalHoursMapping.setAttributeTransformer(normalHoursMapping.typeFor(NormalHoursTransformer.class));
  normalHoursMapping.addFieldTransformerAssociation("String_Node_Str",normalHoursMapping.typeFor(NormalHoursTransformer.class));
  normalHoursMapping.addFieldTransformerAssociation("String_Node_Str",normalHoursMapping.typeFor(NormalHoursTransformer.class));
  MWXmlDirectCollectionMapping responsibilitiesMapping=(MWXmlDirectCollectionMapping)employeeDescriptor.addDirectCollectionMapping(employeeClass.attributeNamed("String_Node_Str"));
  responsibilitiesMapping.getXmlField().setXpath("String_Node_Str");
  MWCompositeObjectMapping addressMapping=employeeDescriptor.addCompositeObjectMapping(employeeClass.attributeNamed("String_Node_Str"));
  addressMapping.getXmlField().setXpath("String_Node_Str");
  addressMapping.setReferenceDescriptor(this.getAddressDescriptor());
  MWCompositeCollectionMapping phoneNumbersMapping=employeeDescriptor.addCompositeCollectionMapping(employeeClass.attributeNamed("String_Node_Str"));
  phoneNumbersMapping.setReferenceDescriptor(this.getPhoneNumberDescriptor());
  phoneNumbersMapping.getXmlField().setXpath("String_Node_Str");
  ((MWMapContainerPolicy)phoneNumbersMapping.getContainerPolicy()).setKeyMethod(this.getPhoneNumberDescriptor().getMWClass().methodWithSignature("String_Node_Str"));
  MWCompositeCollectionMapping dependentsMapping=employeeDescriptor.addCompositeCollectionMapping(employeeClass.attributeNamed("String_Node_Str"));
  dependentsMapping.setReferenceDescriptor(this.getDependentDescriptor());
  dependentsMapping.getXmlField().setXpath("String_Node_Str");
  MWEisOneToOneMapping managerMapping=employeeDescriptor.addEisOneToOneMapping(employeeClass.attributeNamed("String_Node_Str"));
  managerMapping.setReferenceDescriptor(this.getEmployeeDescriptor());
  managerMapping.addFieldPair("String_Node_Str","String_Node_Str");
  managerMapping.addFieldPair("String_Node_Str","String_Node_Str");
  managerMapping.setUseValueHolderIndirection();
  managerMapping.setUseDescriptorReadObjectInteraction(false);
  managerMapping.getSelectionInteraction().setFunctionName("String_Node_Str");
}

Fixed version (ground truth):
public void initializeEmployeeDescriptor(){
  MWRootEisDescriptor employeeDescriptor=getEmployeeDescriptor();
  employeeDescriptor.addInterfaceAliasPolicy();
  MWClass interfaceAlias=typeNamed("String_Node_Str");
  ((MWDescriptorInterfaceAliasPolicy)employeeDescriptor.getInterfaceAliasPolicy()).setInterfaceAlias(interfaceAlias);
  MWClass employeeClass=employeeDescriptor.getMWClass();
  MWElementDeclaration employeeElement=this.getEmployeeSchema().element("String_Node_Str");
  employeeDescriptor.setSchemaContext(employeeElement);
  MWEisTransactionalPolicy transactionalPolicy=(MWEisTransactionalPolicy)employeeDescriptor.getTransactionalPolicy();
  transactionalPolicy.setConformResultsInUnitOfWork(true);
  transactionalPolicy.getRefreshCachePolicy().setDisableCacheHits(true);
  transactionalPolicy.getRefreshCachePolicy().setAlwaysRefreshCache(true);
  MWXmlPrimaryKeyPolicy primaryKeyPolicy=transactionalPolicy.getPrimaryKeyPolicy();
  primaryKeyPolicy.addPrimaryKey("String_Node_Str");
  MWEisQueryManager queryManager=(MWEisQueryManager)employeeDescriptor.getQueryManager();
  MWEisInteraction readObjectInteraction=queryManager.getReadObjectInteraction();
  readObjectInteraction.setFunctionName("String_Node_Str");
  readObjectInteraction.addInputArgument("String_Node_Str","String_Node_Str");
  MWXmlDirectMapping idMapping=(MWXmlDirectMapping)employeeDescriptor.addDirectMapping(employeeClass.attributeNamed("String_Node_Str"));
  idMapping.getXmlField().setXpath("String_Node_Str");
  MWXmlDirectMapping firstNameMapping=(MWXmlDirectMapping)employeeDescriptor.addDirectMapping(employeeClass.attributeNamed("String_Node_Str"));
  firstNameMapping.getXmlField().setXpath("String_Node_Str");
  MWXmlDirectMapping lastNameMapping=(MWXmlDirectMapping)employeeDescriptor.addDirectMapping(employeeClass.attributeNamed("String_Node_Str"));
  lastNameMapping.getXmlField().setXpath("String_Node_Str");
  MWXmlDirectMapping genderMapping=(MWXmlDirectMapping)employeeDescriptor.addDirectMapping(employeeClass.attributeNamed("String_Node_Str"));
  genderMapping.getXmlField().setXpath("String_Node_Str");
  MWObjectTypeConverter genderConverter=genderMapping.setObjectTypeConverter();
  genderConverter.setAttributeType(new MWTypeDeclaration(genderConverter,genderMapping.typeNamed("String_Node_Str")));
  try {
    genderConverter.addValuePair("String_Node_Str","String_Node_Str");
    genderConverter.addValuePair("String_Node_Str","String_Node_Str");
  }
 catch (  ConversionValueException cve) {
  }
  genderConverter.setDefaultAttributeValue("String_Node_Str");
  MWXmlTransformationMapping normalHoursMapping=(MWXmlTransformationMapping)employeeDescriptor.addTransformationMapping(employeeClass.attributeNamed("String_Node_Str"));
  normalHoursMapping.setAttributeTransformer(normalHoursMapping.typeFor(NormalHoursTransformer.class));
  normalHoursMapping.addFieldTransformerAssociation("String_Node_Str",normalHoursMapping.typeFor(NormalHoursTransformer.class));
  normalHoursMapping.addFieldTransformerAssociation("String_Node_Str",normalHoursMapping.typeFor(NormalHoursTransformer.class));
  MWXmlDirectCollectionMapping responsibilitiesMapping=(MWXmlDirectCollectionMapping)employeeDescriptor.addDirectCollectionMapping(employeeClass.attributeNamed("String_Node_Str"));
  responsibilitiesMapping.getXmlField().setXpath("String_Node_Str");
  MWCompositeObjectMapping addressMapping=employeeDescriptor.addCompositeObjectMapping(employeeClass.attributeNamed("String_Node_Str"));
  addressMapping.getXmlField().setXpath("String_Node_Str");
  addressMapping.setReferenceDescriptor(this.getAddressDescriptor());
  MWCompositeCollectionMapping phoneNumbersMapping=employeeDescriptor.addCompositeCollectionMapping(employeeClass.attributeNamed("String_Node_Str"));
  phoneNumbersMapping.setReferenceDescriptor(this.getPhoneNumberDescriptor());
  phoneNumbersMapping.getXmlField().setXpath("String_Node_Str");
  ((MWMapContainerPolicy)phoneNumbersMapping.getContainerPolicy()).setKeyMethod(this.getPhoneNumberDescriptor().getMWClass().methodWithSignature("String_Node_Str"));
  MWCompositeCollectionMapping dependentsMapping=employeeDescriptor.addCompositeCollectionMapping(employeeClass.attributeNamed("String_Node_Str"));
  dependentsMapping.setReferenceDescriptor(this.getDependentDescriptor());
  dependentsMapping.getXmlField().setXpath("String_Node_Str");
  MWEisOneToOneMapping managerMapping=employeeDescriptor.addEisOneToOneMapping(employeeClass.attributeNamed("String_Node_Str"));
  managerMapping.setReferenceDescriptor(this.getEmployeeDescriptor());
  managerMapping.addFieldPair("String_Node_Str","String_Node_Str");
  managerMapping.addFieldPair("String_Node_Str","String_Node_Str");
  managerMapping.setUseValueHolderIndirection();
  managerMapping.setUseDescriptorReadObjectInteraction(false);
  managerMapping.getSelectionInteraction().setFunctionName("String_Node_Str");
}