Program: 17979
Project: 17979
Buggy source:
@Override public EntityType getEntityType(final FullQualifiedName edmFQName) throws ODataRuntimeException, ODataMessageException {
  if (NAMESPACE_1.equals(edmFQName.getNamespace()))   if (ENTITY_TYPE_1_1.equals(edmFQName.getName())) {
    Map<String,Property> properties=new HashMap<String,Property>();
    properties.put("String_Node_Str",new Property("String_Node_Str",EDM_STRING,getFacets(false,null,null,null),null,null,null,null));
    properties.put("String_Node_Str",new Property("String_Node_Str",EDM_STRING,null,new CustomizableFeedMappings(null,null,null,null,null,EdmTargetPath.SyndicationTitle),null,null,null));
    properties.put("String_Node_Str",new Property("String_Node_Str",EDM_STRING,null,null,null,null,null));
    properties.put("String_Node_Str",new Property("String_Node_Str",EDM_STRING,getFacets(null,2,null,null),null,null,null,null));
    properties.put("String_Node_Str",new Property("String_Node_Str",EDM_STRING,null,null,null,null,null));
    properties.put("String_Node_Str",new Property("String_Node_Str",COMPLEX_TYPE_1,null,null,null,null,null));
    properties.put("String_Node_Str",new Property("String_Node_Str",EDM_INT16,null,null,null,null,null));
    properties.put("String_Node_Str",new Property("String_Node_Str",EDM_DATETIME,getFacets(true,null,null,null),new CustomizableFeedMappings(null,null,null,null,null,EdmTargetPath.SyndicationUpdated),null,null,null));
    properties.put("String_Node_Str",new Property("String_Node_Str",EDM_STRING,null,null,null,null,null));
    Map<String,PropertyRef> keyProperty=new HashMap<String,PropertyRef>();
    keyProperty.put("String_Node_Str",new PropertyRef("String_Node_Str",null));
    Map<String,NavigationProperty> navigationProperties=new HashMap<String,NavigationProperty>();
    navigationProperties.put("String_Node_Str",new NavigationProperty("String_Node_Str",ASSOCIATION_1_1,ROLE_1_1,ROLE_1_4,null,null));
    navigationProperties.put("String_Node_Str",new NavigationProperty("String_Node_Str",ASSOCIATION_1_2,ROLE_1_1,ROLE_1_2,null,null));
    navigationProperties.put("String_Node_Str",new NavigationProperty("String_Node_Str",ASSOCIATION_1_3,ROLE_1_1,ROLE_1_3,null,null));
    return new EntityType(ENTITY_TYPE_1_1.getName(),null,false,properties,null,null,null,true,null,new Key(keyProperty,null),navigationProperties);
  }
 else   if (ENTITY_TYPE_1_BASE.equals(edmFQName.getName())) {
    Map<String,Property> properties=new HashMap<String,Property>();
    properties.put("String_Node_Str",new Property("String_Node_Str",EDM_STRING,getFacets(false,null,"String_Node_Str",null),null,null,null,null));
    properties.put("String_Node_Str",new Property("String_Node_Str",EDM_STRING,null,new CustomizableFeedMappings(null,null,null,null,null,EdmTargetPath.SyndicationTitle),null,null,null));
    Map<String,PropertyRef> keyProperty=new HashMap<String,PropertyRef>();
    keyProperty.put("String_Node_Str",new PropertyRef("String_Node_Str",null));
    return new EntityType(ENTITY_TYPE_1_BASE.getName(),null,true,properties,null,null,null,false,null,new Key(keyProperty,null),null);
  }
 else   if (ENTITY_TYPE_1_2.equals(edmFQName.getName())) {
    Map<String,Property> properties=new HashMap<String,Property>();
    properties.put("String_Node_Str",new Property("String_Node_Str",EDM_BOOLEAN,getFacets(true,null,null,null),null,null,null,null));
    Map<String,NavigationProperty> navigationProperties=new HashMap<String,NavigationProperty>();
    navigationProperties.put("String_Node_Str",new NavigationProperty("String_Node_Str",ASSOCIATION_1_2,ROLE_1_2,ROLE_1_1,null,null));
    return new EntityType(ENTITY_TYPE_1_2.getName(),ENTITY_TYPE_1_BASE,false,properties,null,null,null,false,null,null,navigationProperties);
  }
 else   if (ENTITY_TYPE_1_3.equals(edmFQName.getName())) {
    Map<String,Property> properties=new HashMap<String,Property>();
    properties.put("String_Node_Str",new Property("String_Node_Str",EDM_INT16,null,null,null,null,null));
    properties.put("String_Node_Str",new Property("String_Node_Str",EDM_INT16,getFacets(null,null,null,true),null,null,null,null));
    Map<String,NavigationProperty> navigationProperties=new HashMap<String,NavigationProperty>();
    navigationProperties.put("String_Node_Str",new NavigationProperty("String_Node_Str",ASSOCIATION_1_3,ROLE_1_3,ROLE_1_1,null,null));
    navigationProperties.put("String_Node_Str",new NavigationProperty("String_Node_Str",ASSOCIATION_1_4,ROLE_1_3,ROLE_1_5,null,null));
    return new EntityType(ENTITY_TYPE_1_3.getName(),ENTITY_TYPE_1_BASE,false,properties,null,null,null,false,null,null,navigationProperties);
  }
 else   if (ENTITY_TYPE_1_4.equals(edmFQName.getName())) {
    Map<String,NavigationProperty> navigationProperties=new HashMap<String,NavigationProperty>();
    navigationProperties.put("String_Node_Str",new NavigationProperty("String_Node_Str",ASSOCIATION_1_1,ROLE_1_4,ROLE_1_1,null,null));
    return new EntityType(ENTITY_TYPE_1_4.getName(),ENTITY_TYPE_1_1,false,null,null,null,null,true,null,null,navigationProperties);
  }
 else   if (ENTITY_TYPE_1_5.equals(edmFQName.getName())) {
    Map<String,Property> properties=new HashMap<String,Property>();
    properties.put("String_Node_Str",new Property("String_Node_Str",EDM_STRING,getFacets(false,null,null,null),null,null,null,null));
    properties.put("String_Node_Str",new Property("String_Node_Str",EDM_STRING,null,null,null,null,null));
    properties.put("String_Node_Str",new Property("String_Node_Str",EDM_BINARY,null,null,null,null,null));
    Map<String,PropertyRef> keyProperty=new HashMap<String,PropertyRef>();
    keyProperty.put("String_Node_Str",new PropertyRef("String_Node_Str",null));
    Map<String,NavigationProperty> navigationProperties=new HashMap<String,NavigationProperty>();
    navigationProperties.put("String_Node_Str",new NavigationProperty("String_Node_Str",ASSOCIATION_1_4,ROLE_1_5,ROLE_1_3,null,null));
    return new EntityType(ENTITY_TYPE_1_5.getName(),null,false,properties,null,null,null,false,null,new Key(keyProperty,null),navigationProperties);
  }
 else {
    throw new ODataNotFoundException(ODataNotFoundException.ENTITY);
  }
 else   if (NAMESPACE_2.equals(edmFQName.getNamespace()))   if (ENTITY_TYPE_2_1.equals(edmFQName.getName())) {
    Map<String,Property> properties=new HashMap<String,Property>();
    properties.put("String_Node_Str",new Property("String_Node_Str",EDM_INT32,getFacets(false,null,null,true),null,null,null,null));
    properties.put("String_Node_Str",new Property("String_Node_Str",EDM_STRING,null,new CustomizableFeedMappings(null,null,null,null,null,EdmTargetPath.SyndicationTitle),null,null,null));
    properties.put("String_Node_Str",new Property("String_Node_Str",EDM_STRING,getFacets(false,null,null,null),null,null,null,null));
    properties.put("String_Node_Str",new Property("String_Node_Str",EDM_STRING,null,new CustomizableFeedMappings(null,null,null,null,null,EdmTargetPath.SyndicationAuthorUri),null,null,null));
    properties.put("String_Node_Str",new Property("String_Node_Str",EDM_BINARY,null,null,null,null,null));
    properties.put("String_Node_Str",new Property("String_Node_Str",EDM_BINARY,getFacets(true,null,null,null),null,null,null,null));
    properties.put("String_Node_Str",new Property("String_Node_Str",EDM_STRING,getFacets(true,null,null,null),new CustomizableFeedMappings(false,null,"String_Node_Str","String_Node_Str",null,null),null,null,null));
    Map<String,PropertyRef> keyProperties=new HashMap<String,PropertyRef>();
    keyProperties.put("String_Node_Str",new PropertyRef("String_Node_Str",null));
    keyProperties.put("String_Node_Str",new PropertyRef("String_Node_Str",null));
    return new EntityType(ENTITY_TYPE_2_1.getName(),null,false,properties,null,null,null,true,null,new Key(keyProperties,null),null);
  }
 else {
    throw new ODataNotFoundException(ODataNotFoundException.ENTITY);
  }
 else   throw new ODataNotFoundException(ODataNotFoundException.ENTITY);
}

Fixed version (ground truth):
@Override public EntityType getEntityType(final FullQualifiedName edmFQName) throws ODataRuntimeException, ODataMessageException {
  if (NAMESPACE_1.equals(edmFQName.getNamespace()))   if (ENTITY_TYPE_1_1.getName().equals(edmFQName.getName())) {
    Map<String,Property> properties=new HashMap<String,Property>();
    properties.put("String_Node_Str",new Property("String_Node_Str",EDM_STRING,getFacets(false,null,null,null),null,null,null,null));
    properties.put("String_Node_Str",new Property("String_Node_Str",EDM_STRING,null,new CustomizableFeedMappings(null,null,null,null,null,EdmTargetPath.SyndicationTitle),null,null,null));
    properties.put("String_Node_Str",new Property("String_Node_Str",EDM_STRING,null,null,null,null,null));
    properties.put("String_Node_Str",new Property("String_Node_Str",EDM_STRING,getFacets(null,2,null,null),null,null,null,null));
    properties.put("String_Node_Str",new Property("String_Node_Str",EDM_STRING,null,null,null,null,null));
    properties.put("String_Node_Str",new Property("String_Node_Str",COMPLEX_TYPE_1,null,null,null,null,null));
    properties.put("String_Node_Str",new Property("String_Node_Str",EDM_INT16,null,null,null,null,null));
    properties.put("String_Node_Str",new Property("String_Node_Str",EDM_DATETIME,getFacets(true,null,null,null),new CustomizableFeedMappings(null,null,null,null,null,EdmTargetPath.SyndicationUpdated),null,null,null));
    properties.put("String_Node_Str",new Property("String_Node_Str",EDM_STRING,null,null,null,null,null));
    Map<String,PropertyRef> keyProperty=new HashMap<String,PropertyRef>();
    keyProperty.put("String_Node_Str",new PropertyRef("String_Node_Str",null));
    Map<String,NavigationProperty> navigationProperties=new HashMap<String,NavigationProperty>();
    navigationProperties.put("String_Node_Str",new NavigationProperty("String_Node_Str",ASSOCIATION_1_1,ROLE_1_1,ROLE_1_4,null,null));
    navigationProperties.put("String_Node_Str",new NavigationProperty("String_Node_Str",ASSOCIATION_1_2,ROLE_1_1,ROLE_1_2,null,null));
    navigationProperties.put("String_Node_Str",new NavigationProperty("String_Node_Str",ASSOCIATION_1_3,ROLE_1_1,ROLE_1_3,null,null));
    return new EntityType(ENTITY_TYPE_1_1.getName(),null,false,properties,null,null,null,true,null,new Key(keyProperty,null),navigationProperties);
  }
 else   if (ENTITY_TYPE_1_BASE.getName().equals(edmFQName.getName())) {
    Map<String,Property> properties=new HashMap<String,Property>();
    properties.put("String_Node_Str",new Property("String_Node_Str",EDM_STRING,getFacets(false,null,"String_Node_Str",null),null,null,null,null));
    properties.put("String_Node_Str",new Property("String_Node_Str",EDM_STRING,null,new CustomizableFeedMappings(null,null,null,null,null,EdmTargetPath.SyndicationTitle),null,null,null));
    Map<String,PropertyRef> keyProperty=new HashMap<String,PropertyRef>();
    keyProperty.put("String_Node_Str",new PropertyRef("String_Node_Str",null));
    return new EntityType(ENTITY_TYPE_1_BASE.getName(),null,true,properties,null,null,null,false,null,new Key(keyProperty,null),null);
  }
 else   if (ENTITY_TYPE_1_2.getName().equals(edmFQName.getName())) {
    Map<String,Property> properties=new HashMap<String,Property>();
    properties.put("String_Node_Str",new Property("String_Node_Str",EDM_BOOLEAN,getFacets(true,null,null,null),null,null,null,null));
    Map<String,NavigationProperty> navigationProperties=new HashMap<String,NavigationProperty>();
    navigationProperties.put("String_Node_Str",new NavigationProperty("String_Node_Str",ASSOCIATION_1_2,ROLE_1_2,ROLE_1_1,null,null));
    return new EntityType(ENTITY_TYPE_1_2.getName(),ENTITY_TYPE_1_BASE,false,properties,null,null,null,false,null,null,navigationProperties);
  }
 else   if (ENTITY_TYPE_1_3.getName().equals(edmFQName.getName())) {
    Map<String,Property> properties=new HashMap<String,Property>();
    properties.put("String_Node_Str",new Property("String_Node_Str",EDM_INT16,null,null,null,null,null));
    properties.put("String_Node_Str",new Property("String_Node_Str",EDM_INT16,getFacets(null,null,null,true),null,null,null,null));
    Map<String,NavigationProperty> navigationProperties=new HashMap<String,NavigationProperty>();
    navigationProperties.put("String_Node_Str",new NavigationProperty("String_Node_Str",ASSOCIATION_1_3,ROLE_1_3,ROLE_1_1,null,null));
    navigationProperties.put("String_Node_Str",new NavigationProperty("String_Node_Str",ASSOCIATION_1_4,ROLE_1_3,ROLE_1_5,null,null));
    return new EntityType(ENTITY_TYPE_1_3.getName(),ENTITY_TYPE_1_BASE,false,properties,null,null,null,false,null,null,navigationProperties);
  }
 else   if (ENTITY_TYPE_1_4.getName().equals(edmFQName.getName())) {
    Map<String,NavigationProperty> navigationProperties=new HashMap<String,NavigationProperty>();
    navigationProperties.put("String_Node_Str",new NavigationProperty("String_Node_Str",ASSOCIATION_1_1,ROLE_1_4,ROLE_1_1,null,null));
    return new EntityType(ENTITY_TYPE_1_4.getName(),ENTITY_TYPE_1_1,false,null,null,null,null,true,null,null,navigationProperties);
  }
 else   if (ENTITY_TYPE_1_5.getName().equals(edmFQName.getName())) {
    Map<String,Property> properties=new HashMap<String,Property>();
    properties.put("String_Node_Str",new Property("String_Node_Str",EDM_STRING,getFacets(false,null,null,null),null,null,null,null));
    properties.put("String_Node_Str",new Property("String_Node_Str",EDM_STRING,null,null,null,null,null));
    properties.put("String_Node_Str",new Property("String_Node_Str",EDM_BINARY,null,null,null,null,null));
    Map<String,PropertyRef> keyProperty=new HashMap<String,PropertyRef>();
    keyProperty.put("String_Node_Str",new PropertyRef("String_Node_Str",null));
    Map<String,NavigationProperty> navigationProperties=new HashMap<String,NavigationProperty>();
    navigationProperties.put("String_Node_Str",new NavigationProperty("String_Node_Str",ASSOCIATION_1_4,ROLE_1_5,ROLE_1_3,null,null));
    return new EntityType(ENTITY_TYPE_1_5.getName(),null,false,properties,null,null,null,false,null,new Key(keyProperty,null),navigationProperties);
  }
 else {
    throw new ODataNotFoundException(ODataNotFoundException.ENTITY);
  }
 else   if (NAMESPACE_2.equals(edmFQName.getNamespace()))   if (ENTITY_TYPE_2_1.getName().equals(edmFQName.getName())) {
    Map<String,Property> properties=new HashMap<String,Property>();
    properties.put("String_Node_Str",new Property("String_Node_Str",EDM_INT32,getFacets(false,null,null,true),null,null,null,null));
    properties.put("String_Node_Str",new Property("String_Node_Str",EDM_STRING,null,new CustomizableFeedMappings(null,null,null,null,null,EdmTargetPath.SyndicationTitle),null,null,null));
    properties.put("String_Node_Str",new Property("String_Node_Str",EDM_STRING,getFacets(false,null,null,null),null,null,null,null));
    properties.put("String_Node_Str",new Property("String_Node_Str",EDM_STRING,null,new CustomizableFeedMappings(null,null,null,null,null,EdmTargetPath.SyndicationAuthorUri),null,null,null));
    properties.put("String_Node_Str",new Property("String_Node_Str",EDM_BINARY,null,null,null,null,null));
    properties.put("String_Node_Str",new Property("String_Node_Str",EDM_BINARY,getFacets(true,null,null,null),null,null,null,null));
    properties.put("String_Node_Str",new Property("String_Node_Str",EDM_STRING,getFacets(true,null,null,null),new CustomizableFeedMappings(false,null,"String_Node_Str","String_Node_Str",null,null),null,null,null));
    Map<String,PropertyRef> keyProperties=new HashMap<String,PropertyRef>();
    keyProperties.put("String_Node_Str",new PropertyRef("String_Node_Str",null));
    keyProperties.put("String_Node_Str",new PropertyRef("String_Node_Str",null));
    return new EntityType(ENTITY_TYPE_2_1.getName(),null,false,properties,null,null,null,true,null,new Key(keyProperties,null),null);
  }
 else {
    throw new ODataNotFoundException(ODataNotFoundException.ENTITY);
  }
 else   throw new ODataNotFoundException(ODataNotFoundException.ENTITY);
}