Program: 66774
Project: 66774
Buggy source:
/** 
 * Process a given mapping.
 * @param mapping
 * @param seq
 * @param ct
 * @param schemaForNamespace
 * @param workingSchema
 * @param properties
 * @param descriptors
 */
protected void processMapping(DatabaseMapping mapping,Sequence seq,ComplexType ct,HashMap<String,Schema> schemaForNamespace,Schema workingSchema,SchemaModelGeneratorProperties properties,List<XMLDescriptor> descriptors){
  if (mapping instanceof XMLDirectMapping) {
    processXMLDirectMapping((XMLDirectMapping)mapping,seq,ct,schemaForNamespace,workingSchema,properties);
  }
 else   if (mapping instanceof XMLCompositeDirectCollectionMapping) {
    processXMLCompositeDirectCollectionMapping((XMLCompositeDirectCollectionMapping)mapping,seq,ct,schemaForNamespace,workingSchema,properties);
  }
 else   if (mapping instanceof XMLCompositeObjectMapping) {
    processXMLCompositeMapping((XMLCompositeObjectMapping)mapping,seq,ct,schemaForNamespace,workingSchema,properties,descriptors,false);
  }
 else   if (mapping instanceof XMLCompositeCollectionMapping) {
    processXMLCompositeMapping((XMLCompositeCollectionMapping)mapping,seq,ct,schemaForNamespace,workingSchema,properties,descriptors,true);
  }
 else   if (mapping instanceof XMLAnyAttributeMapping) {
    AnyAttribute anyAttribute=new AnyAttribute();
    anyAttribute.setProcessContents(AnyAttribute.LAX);
    ct.setAnyAttribute(anyAttribute);
  }
 else   if (mapping instanceof XMLAnyObjectMapping) {
    processAnyMapping(seq,false);
  }
 else   if (mapping instanceof XMLAnyCollectionMapping) {
    processAnyMapping(seq,true);
  }
 else   if (mapping instanceof XMLChoiceObjectMapping) {
    processXMLChoiceObjectMapping((XMLChoiceObjectMapping)mapping,seq,ct,schemaForNamespace,workingSchema,properties,descriptors);
  }
 else   if (mapping instanceof XMLChoiceCollectionMapping) {
    processXMLChoiceCollectionMapping((XMLChoiceCollectionMapping)mapping,seq,ct,schemaForNamespace,workingSchema,properties,descriptors);
  }
 else   if (mapping instanceof XMLCollectionReferenceMapping) {
    processXMLObjectReferenceMapping((XMLCollectionReferenceMapping)mapping,seq,ct,schemaForNamespace,workingSchema,properties,descriptors,true);
  }
 else   if (mapping instanceof XMLObjectReferenceMapping) {
    processXMLObjectReferenceMapping((XMLObjectReferenceMapping)mapping,seq,ct,schemaForNamespace,workingSchema,properties,descriptors,false);
  }
}

Fixed version (ground truth):
/** 
 * Process a given mapping.
 * @param mapping
 * @param seq
 * @param ct
 * @param schemaForNamespace
 * @param workingSchema
 * @param properties
 * @param descriptors
 */
protected void processMapping(DatabaseMapping mapping,Sequence seq,ComplexType ct,HashMap<String,Schema> schemaForNamespace,Schema workingSchema,SchemaModelGeneratorProperties properties,List<XMLDescriptor> descriptors){
  if (mapping instanceof XMLBinaryDataMapping) {
    processXMLBinaryDataMapping((XMLBinaryDataMapping)mapping,seq,ct,schemaForNamespace,workingSchema,properties);
  }
 else   if (mapping instanceof XMLBinaryDataCollectionMapping) {
    processXMLBinaryDataCollectionMapping((XMLBinaryDataCollectionMapping)mapping,seq,ct,schemaForNamespace,workingSchema,properties);
  }
 else   if (mapping instanceof XMLDirectMapping) {
    processXMLDirectMapping((XMLDirectMapping)mapping,seq,ct,schemaForNamespace,workingSchema,properties);
  }
 else   if (mapping instanceof XMLCompositeDirectCollectionMapping) {
    processXMLCompositeDirectCollectionMapping((XMLCompositeDirectCollectionMapping)mapping,seq,ct,schemaForNamespace,workingSchema,properties);
  }
 else   if (mapping instanceof XMLCompositeObjectMapping) {
    processXMLCompositeMapping((XMLCompositeObjectMapping)mapping,seq,ct,schemaForNamespace,workingSchema,properties,descriptors,false);
  }
 else   if (mapping instanceof XMLCompositeCollectionMapping) {
    processXMLCompositeMapping((XMLCompositeCollectionMapping)mapping,seq,ct,schemaForNamespace,workingSchema,properties,descriptors,true);
  }
 else   if (mapping instanceof XMLAnyAttributeMapping) {
    AnyAttribute anyAttribute=new AnyAttribute();
    anyAttribute.setProcessContents(AnyAttribute.LAX);
    ct.setAnyAttribute(anyAttribute);
  }
 else   if (mapping instanceof XMLAnyObjectMapping) {
    processAnyMapping(seq,false);
  }
 else   if (mapping instanceof XMLAnyCollectionMapping) {
    processAnyMapping(seq,true);
  }
 else   if (mapping instanceof XMLChoiceObjectMapping) {
    processXMLChoiceObjectMapping((XMLChoiceObjectMapping)mapping,seq,ct,schemaForNamespace,workingSchema,properties,descriptors);
  }
 else   if (mapping instanceof XMLChoiceCollectionMapping) {
    processXMLChoiceCollectionMapping((XMLChoiceCollectionMapping)mapping,seq,ct,schemaForNamespace,workingSchema,properties,descriptors);
  }
 else   if (mapping instanceof XMLCollectionReferenceMapping) {
    processXMLObjectReferenceMapping((XMLCollectionReferenceMapping)mapping,seq,ct,schemaForNamespace,workingSchema,properties,descriptors,true);
  }
 else   if (mapping instanceof XMLObjectReferenceMapping) {
    processXMLObjectReferenceMapping((XMLObjectReferenceMapping)mapping,seq,ct,schemaForNamespace,workingSchema,properties,descriptors,false);
  }
}